import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'config/localization/generated/app_localizations.dart'; import 'presentation/pages/main_navigation_page.dart'; void main() { runApp(const ArcheryScorerApp()); } class ArcheryScorerApp extends StatelessWidget { const ArcheryScorerApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Archery scorer', // Localization configuration localizationsDelegates: const [ AppLocalizations.delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ], supportedLocales: const [ Locale('en', ''), Locale('fi', ''), ], theme: ThemeData( colorScheme: ColorScheme.fromSeed( seedColor: Colors.green, brightness: Brightness.light, ), useMaterial3: true, ), home: const MainNavigationPage(), ); } }