Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/src/presentation/widgets/sign_in_text_fields.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ class PasswordTextFormField extends StatelessWidget {
Key key,
this.style,
this.decoration,
this.autofillHints
}) : super(key: key);

final TextStyle style;
final InputDecoration decoration;
final Iterable<String> autofillHints;

@override
Widget build(BuildContext context) {
final password =
context.select((SignInHandlerState state) => state.password);
return TextFormField(
autofillHints: autofillHints,
style: style,
decoration: decoration ??
InputDecoration(
Expand Down Expand Up @@ -54,16 +57,20 @@ class EmailTextFormField extends StatelessWidget {
Key key,
this.style,
this.decoration,
this.autofillHints

}) : super(key: key);

final TextStyle style;
final InputDecoration decoration;
final Iterable<String> autofillHints;

@override
Widget build(BuildContext context) {
final emailAddress =
context.select((SignInHandlerState state) => state.emailAddress);
return TextFormField(
autofillHints: autofillHints,
keyboardType: TextInputType.emailAddress,
style: style,
decoration: decoration ??
Expand Down