Light up the password field only if the password is valid
This commit is contained in:
parent
7efee44196
commit
695056020e
|
@ -258,7 +258,9 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|||
autofillHints: const [AutofillHints.newPassword],
|
||||
onEditingComplete: () => TextInput.finishAutofillContext(),
|
||||
decoration: InputDecoration(
|
||||
fillColor: _passwordsMatch ? _validFieldValueColor : null,
|
||||
fillColor: _passwordsMatch && _passwordIsValid
|
||||
? _validFieldValueColor
|
||||
: null,
|
||||
filled: true,
|
||||
hintText: "Confirm password",
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
|
|
Loading…
Reference in a new issue