@@ -142,6 +142,8 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
142
142
TextFormField (
143
143
keyboardType: TextInputType .emailAddress,
144
144
autofillHints: const [AutofillHints .email],
145
+ textInputAction:
146
+ _forgotPassword ? TextInputAction .done : TextInputAction .next,
145
147
validator: (value) {
146
148
if (value == null ||
147
149
value.isEmpty ||
@@ -162,6 +164,9 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
162
164
autofillHints: _isSigningIn
163
165
? [AutofillHints .password]
164
166
: [AutofillHints .newPassword],
167
+ textInputAction: widget.metadataFields != null && ! _isSigningIn
168
+ ? TextInputAction .next
169
+ : TextInputAction .done,
165
170
validator: (value) {
166
171
if (value == null || value.isEmpty || value.length < 6 ) {
167
172
return localization.passwordLengthError;
@@ -181,6 +186,10 @@ class _SupaEmailAuthState extends State<SupaEmailAuth> {
181
186
.map ((metadataField) => [
182
187
TextFormField (
183
188
controller: _metadataControllers[metadataField],
189
+ textInputAction:
190
+ widget.metadataFields! .last == metadataField
191
+ ? TextInputAction .done
192
+ : TextInputAction .next,
184
193
decoration: InputDecoration (
185
194
label: Text (metadataField.label),
186
195
prefixIcon: metadataField.prefixIcon,
0 commit comments