mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 09:31:13 +00:00
feat: change NavigationDestinationLabelBehavior
This commit is contained in:
parent
418d96b842
commit
c67661ff65
|
@ -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]);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue