mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 18:13:31 +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) {
|
switch (newButton) {
|
||||||
case NavBarButtons.timelines:
|
case NavBarButtons.timelines:
|
||||||
try {
|
|
||||||
Navigator.of(context)
|
|
||||||
.popUntil(ModalRoute.withName(ScreenPaths.timelines));
|
|
||||||
} catch (e) {
|
|
||||||
context.go(ScreenPaths.timelines);
|
context.go(ScreenPaths.timelines);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case NavBarButtons.notifications:
|
case NavBarButtons.notifications:
|
||||||
context.pushNamed(ScreenPaths.notifications);
|
context.pushNamed(ScreenPaths.notifications);
|
||||||
|
|
Loading…
Reference in a new issue