added delays for floatingFlushBar in settings change password

This commit is contained in:
ryleedavis 2022-11-21 20:34:36 -07:00
parent 675977c787
commit 6384d66308

View file

@ -61,6 +61,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
if (verified) { if (verified) {
if (pwNew != pwNewRepeat) { if (pwNew != pwNewRepeat) {
await Future<void>.delayed(const Duration(seconds: 1));
unawaited( unawaited(
showFloatingFlushBar( showFloatingFlushBar(
type: FlushBarType.warning, type: FlushBarType.warning,
@ -77,6 +79,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
); );
if (success) { if (success) {
await Future<void>.delayed(const Duration(seconds: 1));
unawaited( unawaited(
showFloatingFlushBar( showFloatingFlushBar(
type: FlushBarType.success, type: FlushBarType.success,
@ -86,6 +90,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
); );
return true; return true;
} else { } else {
await Future<void>.delayed(const Duration(seconds: 1));
unawaited( unawaited(
showFloatingFlushBar( showFloatingFlushBar(
type: FlushBarType.warning, type: FlushBarType.warning,
@ -97,6 +103,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
} }
} }
} else { } else {
await Future<void>.delayed(const Duration(seconds: 1));
unawaited( unawaited(
showFloatingFlushBar( showFloatingFlushBar(
type: FlushBarType.warning, type: FlushBarType.warning,