style(dashboard): remove const from _CalloutBell and add title to nav rail
This commit is contained in:
@@ -22,6 +22,9 @@ class DashboardRouter extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final title = const Text("Arbiter", style: TextStyle(fontWeight: FontWeight.w800));
|
||||||
|
|
||||||
|
|
||||||
return AutoTabsRouter(
|
return AutoTabsRouter(
|
||||||
routes: routes,
|
routes: routes,
|
||||||
transitionBuilder: (context, child, animation) => FadeTransition(
|
transitionBuilder: (context, child, animation) => FadeTransition(
|
||||||
@@ -58,9 +61,12 @@ class DashboardRouter extends StatelessWidget {
|
|||||||
onSelectedIndexChange: (index) {
|
onSelectedIndexChange: (index) {
|
||||||
tabsRouter.navigate(routes[index]);
|
tabsRouter.navigate(routes[index]);
|
||||||
},
|
},
|
||||||
|
leadingExtendedNavRail: title,
|
||||||
|
leadingUnextendedNavRail: title,
|
||||||
selectedIndex: currentActive,
|
selectedIndex: currentActive,
|
||||||
transitionDuration: const Duration(milliseconds: 800),
|
transitionDuration: const Duration(milliseconds: 800),
|
||||||
internalAnimations: true,
|
internalAnimations: true,
|
||||||
|
|
||||||
trailingNavRail: const _CalloutBell(),
|
trailingNavRail: const _CalloutBell(),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user