- colour theme implemented. ThemeService based global switching for future light detection triggers - test flipflop service for various fun - navigator widget class with state switching
47 lines
1.2 KiB
Dart
47 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../theme/app_theme.dart';
|
|
|
|
/// 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);
|
|
|
|
return Scaffold(
|
|
backgroundColor: theme.background,
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Icon(
|
|
Icons.terrain,
|
|
size: 120,
|
|
color: theme.subdued,
|
|
),
|
|
const SizedBox(height: 24),
|
|
Text(
|
|
'Smart Serow',
|
|
style: Theme.of(context).textTheme.headlineLarge?.copyWith(
|
|
color: theme.foreground,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
const SizedBox(height: 16),
|
|
Text(
|
|
status,
|
|
style: Theme.of(context).textTheme.bodyLarge?.copyWith(
|
|
color: theme.subdued,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|