added uptime monitoring
This commit is contained in:
@@ -157,6 +157,11 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
|
||||
"selectedIcon": Icon(Icons.history),
|
||||
"label": 'History',
|
||||
},
|
||||
{
|
||||
"icon": Icon(Icons.more_horiz),
|
||||
"selectedIcon": Icon(Icons.more_horiz),
|
||||
"label": 'More',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
@@ -171,6 +176,9 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
|
||||
case 2:
|
||||
context.go('/history');
|
||||
break;
|
||||
case 3:
|
||||
context.go('/more');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,6 +186,7 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
|
||||
final String location = GoRouterState.of(context).uri.path;
|
||||
if (location.startsWith('/groups')) return 1;
|
||||
if (location.startsWith('/history')) return 2;
|
||||
if (location.startsWith('/more') || location.startsWith('/users') || location.startsWith('/uptime')) return 3;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user