mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
added delays for floatingFlushBar in settings change password
This commit is contained in:
parent
675977c787
commit
6384d66308
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
|
|||
|
||||
if (verified) {
|
||||
if (pwNew != pwNewRepeat) {
|
||||
await Future<void>.delayed(const Duration(seconds: 1));
|
||||
|
||||
unawaited(
|
||||
showFloatingFlushBar(
|
||||
type: FlushBarType.warning,
|
||||
|
@ -77,6 +79,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
|
|||
);
|
||||
|
||||
if (success) {
|
||||
await Future<void>.delayed(const Duration(seconds: 1));
|
||||
|
||||
unawaited(
|
||||
showFloatingFlushBar(
|
||||
type: FlushBarType.success,
|
||||
|
@ -86,6 +90,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
|
|||
);
|
||||
return true;
|
||||
} else {
|
||||
await Future<void>.delayed(const Duration(seconds: 1));
|
||||
|
||||
unawaited(
|
||||
showFloatingFlushBar(
|
||||
type: FlushBarType.warning,
|
||||
|
@ -97,6 +103,8 @@ class _SecuritySettings extends ConsumerState<SecuritySettings> {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
await Future<void>.delayed(const Duration(seconds: 1));
|
||||
|
||||
unawaited(
|
||||
showFloatingFlushBar(
|
||||
type: FlushBarType.warning,
|
||||
|
|
Loading…
Reference in a new issue