2026-01-25 18:47:35 +09:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
2026-01-26 00:20:52 +09:00
|
|
|
import '../theme/app_theme.dart';
|
|
|
|
|
|
2026-01-25 18:47:35 +09:00
|
|
|
/// Splash screen - shown during initialization
|
|
|
|
|
class SplashScreen extends StatelessWidget {
|
|
|
|
|
final String status;
|
|
|
|
|
|
|
|
|
|
const SplashScreen({super.key, required this.status});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
2026-01-26 00:20:52 +09:00
|
|
|
final theme = AppTheme.of(context);
|
|
|
|
|
|
2026-01-25 18:47:35 +09:00
|
|
|
return Scaffold(
|
2026-01-26 00:20:52 +09:00
|
|
|
backgroundColor: theme.background,
|
2026-01-25 18:47:35 +09:00
|
|
|
body: Center(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Icon(
|
|
|
|
|
Icons.terrain,
|
2026-01-26 11:35:17 +09:00
|
|
|
size: 240,
|
2026-01-26 00:20:52 +09:00
|
|
|
color: theme.subdued,
|
2026-01-26 11:35:17 +09:00
|
|
|
// replace with custom logo later
|
2026-01-25 18:47:35 +09:00
|
|
|
),
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
Text(
|
|
|
|
|
'Smart Serow',
|
|
|
|
|
style: Theme.of(context).textTheme.headlineLarge?.copyWith(
|
2026-01-26 11:35:17 +09:00
|
|
|
fontSize: 160,
|
2026-01-26 00:20:52 +09:00
|
|
|
color: theme.foreground,
|
2026-01-25 18:47:35 +09:00
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
|
Text(
|
|
|
|
|
status,
|
|
|
|
|
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
|
2026-01-26 11:35:17 +09:00
|
|
|
fontSize: 80,
|
2026-01-26 00:20:52 +09:00
|
|
|
color: theme.subdued,
|
2026-01-25 18:47:35 +09:00
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|