How zephvion/restaurant_app works
This Flutter restaurant app presents a home hub for food ordering, meal planning, table reservations, takeaway, and catering. The likely user journey is to enter a service, select products or booking details, and reach checkout, confirmation, or tracking views. The tree also shows shared authentication, route definitions, controllers, models, and reusable widgets. README content and Dart source excerpts were not provided, so screen-to-screen and controller relationships below are dashed, unverified links rather than claims about inspected calls.
Main entry points: app_routes.dart App routes · state Service controllers · order_food Food ordering · main.dart App startup
Components 19
App entry
- App startup
lib/main.dart - Service hub
lib/screens/home/home_screen.dart - App routes
lib/routes/app_routes.dart - Sign-in
lib/screens/auth - Onboarding
lib/screens/onboarding/onboarding_screen.dart
Food ordering
- Food ordering
lib/screens/order_food - Cart and billing
lib/screens/order_food/cart_screen.dart - Payment options
lib/screens/order_food/payment_options_screen.dart - Order tracking
lib/screens/order_food/track_order_screen.dart - Meal planning
lib/screens/food_planner
Restaurant services
- Table reservation
lib/screens/reserve_table - Takeaway
lib/screens/takeaway - Catering
lib/screens/catering
Shared app layers
- Service controllers
lib/state - Domain models
lib/models - Sample data
lib/data/mock_data.dart - Shared widgets
lib/widgets - Google sign-in
lib/services/google_auth_service.dart
Other components
- Customer
Connections 21
- Customer → App startup: launches
- App startup → Service hub: opens
- Service hub → App routes: navigates
- App routes → Sign-in: routes to
- App routes → Food ordering: routes to
- App routes → Meal planning: routes to
- App routes → Table reservation: routes to
- App routes → Takeaway: routes to
- App routes → Catering: routes to
- Food ordering → Cart and billing: adds items
- Cart and billing → Payment options: continues checkout
- Payment options → Order tracking: confirms order
- Food ordering → Service controllers: uses
- Meal planning → Service controllers: uses
- Table reservation → Service controllers: uses
- Takeaway → Service controllers: uses
- Catering → Service controllers: uses
- Service controllers → Domain models: manages
- Food ordering → Sample data: may read
- Food ordering → Shared widgets: uses
- Sign-in → Google sign-in: may invoke