Fix pop off the end bug on going back to timeline, just context.go it

This commit is contained in:
Hank Grabowski 2023-03-14 16:41:37 -04:00
parent c4c8665cb4
commit 7b24617590

View file

@ -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);
}
context.go(ScreenPaths.timelines);
break;
case NavBarButtons.notifications:
context.pushNamed(ScreenPaths.notifications);