fix: homeContext randomly reset after pushNamedAndRemoveUntil

This commit is contained in:
poka 2022-11-28 07:11:39 +01:00
parent 44993557c6
commit 6ea827faf9
1 changed files with 3 additions and 1 deletions

View File

@ -70,8 +70,10 @@ Widget finishButton(BuildContext context) {
// Navigator.pushNamed(homeContext, '/mywallets');
final tmpConext = homeContext;
Navigator.pushNamedAndRemoveUntil(
context, '/mywallets', (route) => route.isFirst);
context, '/mywallets', (route) => route.isFirst)
.then((value) => homeContext = tmpConext);
// Navigator.pushNamedAndRemoveUntil(
// homeContext, '/mywallets', ModalRoute.withName('/'));