chore: Follow up login fix
This commit is contained in:
parent
55847ba1b1
commit
253ab86883
1 changed files with 4 additions and 5 deletions
|
|
@ -60,21 +60,20 @@ class LoginView extends StatelessWidget {
|
||||||
controller.loading ? null : [AutofillHints.password],
|
controller.loading ? null : [AutofillHints.password],
|
||||||
controller: controller.passwordController,
|
controller: controller.passwordController,
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
obscureText: controller.loading || !controller.showPassword,
|
obscureText: !controller.showPassword,
|
||||||
onSubmitted: controller.login,
|
onSubmitted: controller.login,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
prefixIcon: const Icon(Icons.lock_outlined),
|
prefixIcon: const Icon(Icons.lock_outlined),
|
||||||
errorText: controller.passwordError,
|
errorText: controller.passwordError,
|
||||||
errorStyle: const TextStyle(color: Colors.orange),
|
errorStyle: const TextStyle(color: Colors.orange),
|
||||||
suffixIcon: IconButton(
|
suffixIcon: InkWell(
|
||||||
tooltip: L10n.of(context)!.showPassword,
|
onTap: controller.toggleShowPassword,
|
||||||
icon: Icon(
|
child: Icon(
|
||||||
controller.showPassword
|
controller.showPassword
|
||||||
? Icons.visibility_off_outlined
|
? Icons.visibility_off_outlined
|
||||||
: Icons.visibility_outlined,
|
: Icons.visibility_outlined,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
),
|
),
|
||||||
onPressed: controller.toggleShowPassword,
|
|
||||||
),
|
),
|
||||||
hintText: L10n.of(context)!.password,
|
hintText: L10n.of(context)!.password,
|
||||||
fillColor: Theme.of(context).colorScheme.background,
|
fillColor: Theme.of(context).colorScheme.background,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue