Files
smart-serow/pi/ui/lib/screens/splash_screen.dart

50 lines
1.3 KiB
Dart
Raw Normal View History

2026-01-25 18:47:35 +09:00
import 'package:flutter/material.dart';
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) {
final theme = AppTheme.of(context);
2026-01-25 18:47:35 +09:00
return Scaffold(
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,
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,
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,
color: theme.subdued,
2026-01-25 18:47:35 +09:00
),
),
],
),
),
);
}
}