minor fix
This commit is contained in:
parent
ea3619d7f5
commit
ccbca7c506
1 changed files with 6 additions and 2 deletions
|
@ -237,7 +237,9 @@ class _AvesFloatingBarState extends State<AvesFloatingBar> with RouteAware {
|
||||||
void didPopNext() {
|
void didPopNext() {
|
||||||
// post to prevent single frame flash during hero
|
// post to prevent single frame flash during hero
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
if (mounted) {
|
||||||
_isBlurAllowedNotifier.value = true;
|
_isBlurAllowedNotifier.value = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,7 +247,9 @@ class _AvesFloatingBarState extends State<AvesFloatingBar> with RouteAware {
|
||||||
void didPushNext() {
|
void didPushNext() {
|
||||||
// post to prevent single frame flash during hero
|
// post to prevent single frame flash during hero
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
if (mounted) {
|
||||||
_isBlurAllowedNotifier.value = false;
|
_isBlurAllowedNotifier.value = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue