|
| 1 | +import 'package:app/presentation/navigation/routers.dart'; |
1 | 2 | import 'package:app/presentation/resources/locale/generated/l10n.dart'; |
2 | 3 | import 'package:app/presentation/resources/resources.dart'; |
3 | 4 | import 'package:app/presentation/ui/components/primary_button.dart'; |
@@ -52,6 +53,7 @@ class _LoginFormState extends State<LoginForm> { |
52 | 53 | labelText: S.of(context).labelEmail, |
53 | 54 | ), |
54 | 55 | keyboardType: TextInputType.emailAddress, |
| 56 | + autofillHints: const [AutofillHints.username, AutofillHints.email], |
55 | 57 | controller: emailController, |
56 | 58 | validator: (value) { |
57 | 59 | if (!FormValidator.isEmail(value)) { |
@@ -101,9 +103,8 @@ class _LoginFormState extends State<LoginForm> { |
101 | 103 | IconButton( |
102 | 104 | onPressed: () { |
103 | 105 | ScaffoldMessenger.of(context).showSnackBar( |
104 | | - const SnackBar( |
105 | | - content: Text( |
106 | | - "This should open the terms and conditions URL."), |
| 106 | + SnackBar( |
| 107 | + content: Text(S.of(context).hintTermsAndConditions), |
107 | 108 | ), |
108 | 109 | ); |
109 | 110 | }, |
@@ -147,6 +148,26 @@ class _LoginFormState extends State<LoginForm> { |
147 | 148 | ); |
148 | 149 | }, |
149 | 150 | ), |
| 151 | + const Gap(Dimen.spacingL), |
| 152 | + const Row( |
| 153 | + mainAxisAlignment: MainAxisAlignment.center, |
| 154 | + children: [ |
| 155 | + Expanded(child: Divider()), |
| 156 | + Padding( |
| 157 | + padding: EdgeInsets.symmetric(horizontal: Dimen.spacingS), |
| 158 | + child: Text("OR"), |
| 159 | + ), |
| 160 | + Expanded(child: Divider()), |
| 161 | + ], |
| 162 | + ), |
| 163 | + const Gap(Dimen.spacingM), |
| 164 | + SizedBox( |
| 165 | + width: double.infinity, |
| 166 | + child: TextButton( |
| 167 | + onPressed: () => Routes.signup.go(context), |
| 168 | + child: Text(S.of(context).ctaSignUp.toUpperCase()), |
| 169 | + ), |
| 170 | + ), |
150 | 171 | ], |
151 | 172 | ), |
152 | 173 | ); |
|
0 commit comments