unsuccessful login lag fixed

This commit is contained in:
ryleedavis 2022-11-16 12:29:51 -07:00
parent be70d75d75
commit dfc52e3e7e

View file

@ -55,6 +55,8 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
),
);
await Future<void>.delayed(const Duration(seconds: 1));
await ref
.read(storageCryptoHandlerProvider)
.initFromExisting(passwordController.text);
@ -79,6 +81,8 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
// pop loading indicator
Navigator.of(context).pop();
await Future<void>.delayed(const Duration(seconds: 1));
await showFloatingFlushBar(
type: FlushBarType.warning,
message: e.toString(),