small fix, don't worry about it

This commit is contained in:
Tomas Dvorak
2026-04-10 12:05:40 +02:00
parent 7b7ed0083f
commit 5ab2773f98
55 changed files with 3240 additions and 483 deletions
@@ -28,32 +28,35 @@ class _HomeCountdownScreenState extends ConsumerState<HomeCountdownScreen> {
? achievementsState.level
: null;
final child = countdownState.isLoading
? const Center(child: LoadingIndicator())
: countdownState.error != null
? Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Error: ${countdownState.error}'),
const SizedBox(height: 16),
ElevatedButton(
onPressed: () => context.go('/'),
child: const Text('Retry'),
),
],
),
)
: countdownState.user == null || !countdownState.user!.hasCountdownStarted
? _CountdownNotStartedScreen()
: _CountdownActiveScreen(
user: countdownState.user!,
level: level,
);
return AppScaffold(
body: SafeArea(
child: Padding(
padding: const EdgeInsets.only(top: 30.0, bottom: 30.0),
child: countdownState.isLoading
? const Center(child: LoadingIndicator())
: countdownState.error != null
? Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Error: ${countdownState.error}'),
const SizedBox(height: 16),
ElevatedButton(
onPressed: () => context.go('/'),
child: const Text('Retry'),
),
],
),
)
: countdownState.user == null || !countdownState.user!.hasCountdownStarted
? _CountdownNotStartedScreen()
: _CountdownActiveScreen(
user: countdownState.user!,
level: level,
),
child: child,
),
),
floatingActionButton: FloatingActionButton(
onPressed: () => context.push('/ai-chat'),