feat: add bottom navigation shell with four tabs

Introduces AppShell with an IndexedStack-backed NavigationBar (Today,
History, Insights, Settings). Stub screens added for Calendar, Insights,
and Settings; app.dart now routes to AppShell instead of LogMoodScreen directly.
This commit is contained in:
2026-04-26 14:21:12 +10:00
parent 344182c30c
commit fefb61ffae
5 changed files with 98 additions and 3 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'core/providers/settings_provider.dart';
import 'features/log_mood/log_mood_screen.dart';
import 'shell.dart';
class App extends ConsumerWidget {
const App({super.key});
@@ -17,11 +17,11 @@ class App extends ConsumerWidget {
darkTheme: _darkTheme(),
themeMode: ThemeMode.system,
home: onboardingAsync.when(
data: (complete) => const LogMoodScreen(),
data: (complete) => const AppShell(),
loading: () => const Scaffold(
body: Center(child: CircularProgressIndicator()),
),
error: (e, _) => const LogMoodScreen(),
error: (e, _) => const AppShell(),
),
);
}