refactor home
This commit is contained in:
@@ -13,6 +13,9 @@ class AppShellScreen extends StatelessWidget {
|
||||
final StatefulNavigationShell navigationShell;
|
||||
|
||||
void _gotoBranch(int index, BuildContext context) {
|
||||
if (index == navigationShell.currentIndex) {
|
||||
return;
|
||||
}
|
||||
navigationShell.goBranch(
|
||||
index,
|
||||
initialLocation: index == navigationShell.currentIndex,
|
||||
|
||||
Reference in New Issue
Block a user