Skip to content

Commit 0c3318d

Browse files
committed
submit login after pressing enter
1 parent d7a27bd commit 0c3318d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/screens/auth_screen.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ class _AuthCardState extends State<AuthCard> {
259259
}
260260
return null;
261261
},
262+
onFieldSubmitted: (value){
263+
_submit(context);
264+
},
262265
onSaved: (value) {
263266
_authData['password'] = value!;
264267
},

0 commit comments

Comments
 (0)