import 'package:flutter/material.dart'; import 'layouts/main_layout.dart'; import 'pages/tables.dart'; // import 'pages/commandes_screen.dart'; // import 'pages/categories_screen.dart'; // import 'pages/menus_screen.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Restaurant App', theme: ThemeData( primarySwatch: Colors.green, visualDensity: VisualDensity.adaptivePlatformDensity, ), initialRoute: '/tables', routes: { '/tables': (context) => const MainLayout(currentIndex: 0, child: TablesScreen()), // '/commandes': // (context) => MainLayout(currentIndex: 1, child: CommandesScreen()), // '/categories': // (context) => MainLayout(currentIndex: 2, child: CategoriesScreen()), // '/menus': // (context) => MainLayout(currentIndex: 3, child: MenusScreen()), }, ); } }