01a0f1029f
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
39 lines
904 B
Dart
39 lines
904 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:intl/date_symbol_data_local.dart';
|
|
import 'package:supabase_flutter/supabase_flutter.dart';
|
|
|
|
import 'screens/auth_gate.dart';
|
|
import 'supabase_config.dart';
|
|
import 'theme.dart';
|
|
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await initializeDateFormatting('fr_FR', null);
|
|
|
|
if (SupabaseConfig.estConfigure) {
|
|
await Supabase.initialize(
|
|
url: SupabaseConfig.url,
|
|
publishableKey: SupabaseConfig.anonKey,
|
|
);
|
|
}
|
|
|
|
runApp(const MonApp());
|
|
}
|
|
|
|
class MonApp extends StatelessWidget {
|
|
const MonApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Ma fidélité',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: AppTheme.clair(),
|
|
darkTheme: AppTheme.sombre(),
|
|
themeMode: ThemeMode.light,
|
|
home: const AuthGate(),
|
|
);
|
|
}
|
|
}
|