Skip to content

Commit

Permalink
fix: Signup: the password confirmation should show a submit button on…
Browse files Browse the repository at this point in the history
… the keyboard (#3201)
  • Loading branch information
g123k authored Oct 25, 2022
1 parent c608459 commit 1693e40
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
type: TextFieldTypes.PASSWORD,
controller: _password2Controller,
focusNode: _password2FocusNode,
textInputAction: TextInputAction.next,
textInputAction: TextInputAction.send,
hintText: appLocalizations.sign_up_page_confirm_password_hint,
prefixIcon: const Icon(Icons.vpn_key),
autofillHints: const <String>[
Expand All @@ -207,6 +207,13 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
return null;
}
},
onFieldSubmitted: (String password) {
if (password.isNotEmpty) {
_signUp();
} else {
_formKey.currentState!.validate();
}
},
),
const SizedBox(height: space),

Expand Down

0 comments on commit 1693e40

Please sign in to comment.