mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +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 (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,
|
||||||
|
|
Loading…
Reference in a new issue