2025-08-22 23:42:12 +09:00
|
|
|
import 'package:flutter/material.dart';
|
2025-08-24 20:47:16 +09:00
|
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
|
|
|
import 'config/localization/generated/app_localizations.dart';
|
2025-08-23 22:42:32 +09:00
|
|
|
import 'presentation/pages/main_navigation_page.dart';
|
2025-08-22 23:42:12 +09:00
|
|
|
|
|
|
|
|
void main() {
|
2025-08-24 13:28:43 +09:00
|
|
|
runApp(const ArcheryScorerApp());
|
2025-08-22 23:42:12 +09:00
|
|
|
}
|
|
|
|
|
|
2025-08-24 13:28:43 +09:00
|
|
|
class ArcheryScorerApp extends StatelessWidget {
|
|
|
|
|
const ArcheryScorerApp({super.key});
|
2025-08-22 23:42:12 +09:00
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return MaterialApp(
|
2025-08-24 13:28:43 +09:00
|
|
|
title: 'Archery scorer',
|
2025-08-24 20:47:16 +09:00
|
|
|
|
|
|
|
|
// Localization configuration
|
|
|
|
|
localizationsDelegates: const [
|
|
|
|
|
AppLocalizations.delegate,
|
|
|
|
|
GlobalMaterialLocalizations.delegate,
|
|
|
|
|
GlobalWidgetsLocalizations.delegate,
|
|
|
|
|
GlobalCupertinoLocalizations.delegate,
|
|
|
|
|
],
|
|
|
|
|
supportedLocales: const [
|
|
|
|
|
Locale('en', ''),
|
|
|
|
|
Locale('fi', ''),
|
|
|
|
|
],
|
|
|
|
|
|
2025-08-22 23:42:12 +09:00
|
|
|
theme: ThemeData(
|
|
|
|
|
colorScheme: ColorScheme.fromSeed(
|
|
|
|
|
seedColor: Colors.green,
|
|
|
|
|
brightness: Brightness.light,
|
|
|
|
|
),
|
|
|
|
|
useMaterial3: true,
|
|
|
|
|
),
|
2025-08-23 22:42:32 +09:00
|
|
|
home: const MainNavigationPage(),
|
2025-08-22 23:42:12 +09:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|