Skip to content

Commit

Permalink
fix: fixes 1286 (openfoodfacts#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
abughalib authored Sep 16, 2022
1 parent 58dbd43 commit e60f6b8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
final FocusNode _userFocusNode = FocusNode();
final FocusNode _emailFocusNode = FocusNode();
final FocusNode _password1FocusNode = FocusNode();
final FocusNode _password2FocusNode = FocusNode();

bool _foodProducer = false;
bool _agree = false;
Expand Down Expand Up @@ -163,6 +164,8 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
focusNode: _password1FocusNode,
textInputAction: TextInputAction.next,
hintText: appLocalizations.sign_up_page_password_hint,
onFieldSubmitted: (_) =>
FocusScope.of(context).requestFocus(_password2FocusNode),
prefixIcon: const Icon(Icons.vpn_key),
autofillHints: const <String>[
AutofillHints.newPassword,
Expand All @@ -181,6 +184,7 @@ class _SignUpPageState extends State<SignUpPage> with TraceableClientMixin {
SmoothTextFormField(
type: TextFieldTypes.PASSWORD,
controller: _password2Controller,
focusNode: _password2FocusNode,
textInputAction: TextInputAction.next,
hintText: appLocalizations.sign_up_page_confirm_password_hint,
prefixIcon: const Icon(Icons.vpn_key),
Expand Down

0 comments on commit e60f6b8

Please sign in to comment.