feat: Implement registration with email

This commit is contained in:
Christian Pauly 2021-05-13 12:18:50 +02:00
commit b834baa6dc
5 changed files with 176 additions and 49 deletions

View file

@ -47,6 +47,21 @@ class SignUpPasswordUI extends StatelessWidget {
labelText: L10n.of(context).password),
),
),
Padding(
padding: const EdgeInsets.all(12.0),
child: TextField(
controller: controller.emailController,
readOnly: controller.loading,
autocorrect: false,
keyboardType: TextInputType.emailAddress,
onSubmitted: (_) => controller.signUpAction,
decoration: InputDecoration(
prefixIcon: Icon(Icons.mail_outline_outlined),
errorText: controller.emailError,
hintText: 'email@example.com',
labelText: L10n.of(context).optionalAddEmail),
),
),
SizedBox(height: 12),
Hero(
tag: 'loginButton',