Overview
The Restaurant Selection screen is the entry point to the reservation system. Here you can browse available restaurants, view their basic information, and choose where you’d like to make a reservation. Source:lib/presentacion/pantalla_inicio/pantalla_inicio_screen.dart
Accessing Restaurant Selection
When you open the application, you’ll automatically land on the restaurant selection screen at the/ route.
Features
Browse Restaurants
The main screen displays a scrollable list of all registered restaurants in the system.Restaurant Cards
Each restaurant is displayed in an interactive card with key information
Quick Navigation
Tap any restaurant card to view details or make a reservation
Restaurant Card Information
Each restaurant card displays:- Restaurant Name: The business name
- Icon: Visual identifier for the restaurant
- Specialty: Type of cuisine or restaurant category
- Description: Brief overview of the restaurant
Business Owner Access
At the top of the screen, there’s a “¿Tienes un negocio?” (Do you have a business?) button that provides access to:State Management
The screen usesPantallaInicioCubit to manage the restaurant listing state.
Source: lib/presentacion/pantalla_inicio/pantalla_inicio_cubit.dart
States
Loading Restaurants
When the screen initializes, it loads all available restaurants:User Flow
Business Owner Registration
Business owners can register a new restaurant through the registration wizard:Registration Steps
Registration Steps
- Business Information: Name, contact details, address
- Authentication Setup: Email and password configuration
- Restaurant Details: Specialty, description, operating hours
- Initial Configuration: Default settings and preferences
RegistroNegocioStepper widget component.
Source: lib/presentacion/widgets_comunes/registro_negocio_stepper.dart
Navigation Routes
Integration Points
From Restaurant Selection
Users can navigate to:- Restaurant Details (
/restaurante) - View detailed restaurant information - Business Admin Panel (
/dueno) - For restaurant owners - Registration Flow - For new business owners
Data Source
Restaurants are loaded from theNegocioRepositorio:
UI Components
The screen uses several custom widgets:IconoCircular- Displays restaurant icons in circular framesRegistroNegocioStepper- Multi-step registration wizard- Material Design Cards - For restaurant listing
See Also
Restaurant Details
Learn about viewing restaurant information
Making Reservations
How to book a table once you’ve selected a restaurant
Business Registration
Complete guide for restaurant owners
PantallaInicioCubit
State management API reference