progress on batches

This commit is contained in:
2026-06-05 20:25:20 +02:00
parent eab2368331
commit 2dd790fe6e
23 changed files with 9112 additions and 74 deletions

View File

@@ -47,7 +47,7 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
extended: true,
leading: Image(
image: AssetImage('assets/velocity.png'),
width: 150
width: 150,
),
trailing: _buildLogin(context),
labelType: NavigationRailLabelType.none,
@@ -121,6 +121,11 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
"selectedIcon": Icon(Icons.home),
"label": 'Home',
},
{
"icon": Icon(Icons.group_outlined),
"selectedIcon": Icon(Icons.group),
"label": 'Groups',
},
{
"icon": Icon(Icons.history_outlined),
"selectedIcon": Icon(Icons.history),
@@ -130,7 +135,7 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
}
Widget _buildLogin(BuildContext context) {
if(_isLoggedIn) {
if (_isLoggedIn) {
return SizedBox();
}
@@ -184,23 +189,19 @@ class _ScaffoldWithNavBarState extends State<ScaffoldWithNavBar> {
case 0:
context.go('/home');
break;
// case 1:
// context.go('/recipients');
// break;
case 1:
context.go('/groups');
break;
case 2:
context.go('/history');
break;
// case 2:
// context.go('/profile');
// break;
}
}
int _calculateSelectedIndex(BuildContext context) {
final String location = GoRouterState.of(context).uri.path;
// if (location.startsWith('/recipients')) return 1;
if (location.startsWith('/history')) return 1;
// if (location.startsWith('/profile')) return 2;
if (location.startsWith('/groups')) return 1;
if (location.startsWith('/history')) return 2;
return 0;
}
}