kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix pop off the end bug on going back to timeline, just context.go it
rodzic
c4c8665cb4
commit
7b24617590
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue