|
|
@ -1,8 +1,8 @@ |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'layouts/main_layout.dart'; |
|
|
import 'layouts/main_layout.dart'; |
|
|
import 'pages/tables.dart'; |
|
|
import 'pages/tables.dart'; |
|
|
|
|
|
import 'pages/categorie.dart'; // Import de votre page de catégories |
|
|
// import 'pages/commandes_screen.dart'; |
|
|
// import 'pages/commandes_screen.dart'; |
|
|
// import 'pages/categories_screen.dart'; |
|
|
|
|
|
// import 'pages/menus_screen.dart'; |
|
|
// import 'pages/menus_screen.dart'; |
|
|
|
|
|
|
|
|
void main() { |
|
|
void main() { |
|
|
@ -22,20 +22,19 @@ class MyApp extends StatelessWidget { |
|
|
), |
|
|
), |
|
|
initialRoute: '/tables', |
|
|
initialRoute: '/tables', |
|
|
routes: { |
|
|
routes: { |
|
|
'/tables': |
|
|
'/tables': (context) => const MainLayout( |
|
|
(context) => const MainLayout( |
|
|
|
|
|
currentRoute: '/tables', |
|
|
currentRoute: '/tables', |
|
|
child: TablesScreen(), |
|
|
child: TablesScreen(), |
|
|
), |
|
|
), |
|
|
|
|
|
'/categories': (context) => const MainLayout( |
|
|
|
|
|
currentRoute: '/categories', |
|
|
|
|
|
child: CategoriesPage(), |
|
|
|
|
|
), |
|
|
// Uncomment and update these as needed: |
|
|
// Uncomment and update these as needed: |
|
|
// '/commandes': (context) => const MainLayout( |
|
|
// '/commandes': (context) => const MainLayout( |
|
|
// currentRoute: '/commandes', |
|
|
// currentRoute: '/commandes', |
|
|
// child: CommandesScreen(), |
|
|
// child: CommandesScreen(), |
|
|
// ), |
|
|
// ), |
|
|
// '/categories': (context) => const MainLayout( |
|
|
|
|
|
// currentRoute: '/categories', |
|
|
|
|
|
// child: CategoriesScreen(), |
|
|
|
|
|
// ), |
|
|
|
|
|
// '/menus': (context) => const MainLayout( |
|
|
// '/menus': (context) => const MainLayout( |
|
|
// currentRoute: '/menus', |
|
|
// currentRoute: '/menus', |
|
|
// child: MenusScreen(), |
|
|
// child: MenusScreen(), |
|
|
@ -43,4 +42,4 @@ class MyApp extends StatelessWidget { |
|
|
}, |
|
|
}, |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |