mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 15:53:32 +00:00
Fix pop off the end bug on going back to timeline, just context.go it
This commit is contained in:
parent
c4c8665cb4
commit
7b24617590
1 changed files with 1 additions and 6 deletions
|
@ -42,12 +42,7 @@ class AppBottomNavBar extends StatelessWidget {
|
|||
|
||||
switch (newButton) {
|
||||
case NavBarButtons.timelines:
|
||||
try {
|
||||
Navigator.of(context)
|
||||
.popUntil(ModalRoute.withName(ScreenPaths.timelines));
|
||||
} catch (e) {
|
||||
context.go(ScreenPaths.timelines);
|
||||
}
|
||||
break;
|
||||
case NavBarButtons.notifications:
|
||||
context.pushNamed(ScreenPaths.notifications);
|
||||
|
|
Loading…
Reference in a new issue