35 lines
761 B
Dart
35 lines
761 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:intl/date_symbol_data_local.dart';
|
|
|
|
import 'pocketbase_config.dart';
|
|
import 'screens/auth_gate.dart';
|
|
import 'theme.dart';
|
|
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await initializeDateFormatting('fr_FR', null);
|
|
|
|
if (PbConfig.estConfigure) {
|
|
await initPocketBase();
|
|
}
|
|
|
|
runApp(const MonApp());
|
|
}
|
|
|
|
class MonApp extends StatelessWidget {
|
|
const MonApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Le Trévériennais',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: AppTheme.clair(),
|
|
darkTheme: AppTheme.sombre(),
|
|
themeMode: ThemeMode.light,
|
|
home: const AuthGate(),
|
|
);
|
|
}
|
|
}
|