feat: change NavigationDestinationLabelBehavior

pull/458/head
dettlaff 2024-02-08 00:19:27 +04:00
parent 418d96b842
commit c67661ff65
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class _BottomBar extends StatelessWidget {
), ),
child: NavigationBar( child: NavigationBar(
selectedIndex: prevActiveIndex == -1 ? 0 : prevActiveIndex, selectedIndex: prevActiveIndex == -1 ? 0 : prevActiveIndex,
labelBehavior: NavigationDestinationLabelBehavior.onlyShowSelected, labelBehavior: NavigationDestinationLabelBehavior.alwaysShow,
onDestinationSelected: (final index) { onDestinationSelected: (final index) {
context.router.replaceAll([destinations[index].route]); context.router.replaceAll([destinations[index].route]);
}, },