ok for now

This commit is contained in:
davmar
2026-09-06 21:58:59 +02:00
parent 773187f0af
commit 87afe271b7
20 changed files with 2271 additions and 377 deletions
+11 -19
View File
@@ -1,13 +1,11 @@
/// Host scaffold that owns the bottom navigation bar and its tabs.
/// Host scaffold: Home + Overview. Settings lives in the app-bar gear.
library;
import 'package:flutter/material.dart';
import 'balance_screen.dart';
import 'settings_screen.dart';
import 'transactions_screen.dart';
import 'home_screen.dart';
import 'overview_screen.dart';
/// Switches between Balance, Transactions, and Settings without stacking routes.
class MainShell extends StatefulWidget {
const MainShell({super.key});
@@ -19,9 +17,8 @@ class _MainShellState extends State<MainShell> {
int _index = 0;
static const _pages = [
BalanceScreen(),
TransactionsScreen(),
SettingsScreen(),
HomeScreen(),
OverviewScreen(),
];
@override
@@ -36,19 +33,14 @@ class _MainShellState extends State<MainShell> {
onDestinationSelected: (index) => setState(() => _index = index),
destinations: const [
NavigationDestination(
icon: Icon(Icons.account_balance_wallet_outlined),
selectedIcon: Icon(Icons.account_balance_wallet),
label: 'Balance',
icon: Icon(Icons.home_outlined),
selectedIcon: Icon(Icons.home),
label: 'Home',
),
NavigationDestination(
icon: Icon(Icons.receipt_long_outlined),
selectedIcon: Icon(Icons.receipt_long),
label: 'Transactions',
),
NavigationDestination(
icon: Icon(Icons.settings_outlined),
selectedIcon: Icon(Icons.settings),
label: 'Settings',
icon: Icon(Icons.insights_outlined),
selectedIcon: Icon(Icons.insights),
label: 'Overview',
),
],
),