diff --git a/lib/utils/bottom_nav_bar.dart b/lib/utils/bottom_nav_bar.dart index 70524c2..1cbec4a 100644 --- a/lib/utils/bottom_nav_bar.dart +++ b/lib/utils/bottom_nav_bar.dart @@ -53,7 +53,7 @@ class MyBottomNavBar { ], onTap: (index) { String selectedRoute = widgetPages.elementAt(index); - Navigator.of(context).pushNamed(selectedRoute).then((_) => null); + Navigator.of(context).pushNamed(selectedRoute); }, ); }