import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; import 'package:provider/provider.dart'; import 'package:google_fonts/google_fonts.dart'; import 'theme/app_theme.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp.router( title: 'P\'titsPas', theme: AppTheme.lightTheme, routerConfig: GoRouter( initialLocation: '/', routes: [ GoRoute( path: '/', builder: (context, state) => const HomePage(), ), ], ), ); } } class HomePage extends StatelessWidget { const HomePage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('P\'titsPas'), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Image.asset( 'assets/images/logo.png', width: 200, height: 200, ), const SizedBox(height: 24), Text( 'Bienvenue sur P\'titsPas', style: Theme.of(context).textTheme.displayMedium, ), const SizedBox(height: 16), Text( 'La plateforme de gestion de la garde d\'enfants', style: Theme.of(context).textTheme.bodyLarge, ), ], ), ), ); } }