|
|
|
@ -4,7 +4,6 @@ import 'pages/tables.dart'; |
|
|
|
import 'pages/categorie.dart'; // Import de votre page de catégories |
|
|
|
import 'pages/commandes_screen.dart'; |
|
|
|
import 'pages/login_screen.dart'; |
|
|
|
// import 'pages/menus_screen.dart'; |
|
|
|
|
|
|
|
void main() { |
|
|
|
runApp(const MyApp()); |
|
|
|
@ -17,6 +16,7 @@ class MyApp extends StatelessWidget { |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return MaterialApp( |
|
|
|
title: 'Restaurant App', |
|
|
|
debugShowCheckedModeBanner: false, // ← ICI pour enlever le "DEBUG" |
|
|
|
theme: ThemeData( |
|
|
|
primarySwatch: Colors.green, |
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity, |
|
|
|
@ -24,30 +24,18 @@ class MyApp extends StatelessWidget { |
|
|
|
initialRoute: '/login', |
|
|
|
routes: { |
|
|
|
'/login': (context) => const LoginScreen(), |
|
|
|
'/tables': |
|
|
|
(context) => const MainLayout( |
|
|
|
'/tables': (context) => const MainLayout( |
|
|
|
currentRoute: '/tables', |
|
|
|
child: TablesScreen(), |
|
|
|
), |
|
|
|
'/categories': |
|
|
|
(context) => const MainLayout( |
|
|
|
'/categories': (context) => const MainLayout( |
|
|
|
currentRoute: '/categories', |
|
|
|
child: CategoriesPage(), |
|
|
|
), |
|
|
|
'/commandes': |
|
|
|
(context) => const MainLayout( |
|
|
|
'/commandes': (context) => const MainLayout( |
|
|
|
currentRoute: '/commandes', |
|
|
|
child: OrdersManagementScreen(), |
|
|
|
), |
|
|
|
// Uncomment and update these as needed: |
|
|
|
// '/commandes': (context) => const MainLayout( |
|
|
|
// currentRoute: '/commandes', |
|
|
|
// child: CommandesScreen(), |
|
|
|
// ), |
|
|
|
// '/menus': (context) => const MainLayout( |
|
|
|
// currentRoute: '/menus', |
|
|
|
// child: MenusScreen(), |
|
|
|
// ), |
|
|
|
}, |
|
|
|
); |
|
|
|
} |
|
|
|
|