Application propre sans erreurs. Bonne base sur laquelle repartir de zero en cas de soucis majeurs.

This commit is contained in:
DahoudG
2024-08-26 22:45:58 +00:00
parent bcf714ab73
commit eb8368b1ee
24 changed files with 397 additions and 201 deletions

18
lib/config/router.dart Normal file
View File

@@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
import 'package:afterwork/presentation/screens/home/home_screen.dart';
class AppRouter {
static Route<dynamic> generateRoute(RouteSettings settings) {
switch (settings.name) {
case '/':
return MaterialPageRoute(builder: (_) => const HomeScreen());
// Ajoute d'autres routes ici
default:
return MaterialPageRoute(
builder: (_) => const Scaffold(
body: Center(child: Text('Page not found')),
),
);
}
}
}