Overview
The Restaurant Details screen (PantallaRestaurante) provides comprehensive information about a selected restaurant, including its story, specialties, and quick access to key features like making reservations. Source:lib/presentacion/pantalla_restaurante/pantalla_restaurante_screen.dart
Accessing Restaurant Details
Navigate to this screen by:- Selecting a restaurant from the home screen
- Using the
/restauranteroute with anegocioIdparameter
Screen Sections
Restaurant Header
Displays essential restaurant information:- Name: Restaurant business name
- Icon: Visual identifier (circular icon)
- Specialty: Type of cuisine or category
- Back Button: Returns to restaurant selection
Quick Action Menu
Provides fast access to main features through action cards:Ver Historia
View the restaurant’s history and story
Disponibilidad
Check table availability and make reservations
Mis Reservas
View and manage your existing reservations
Información
View detailed restaurant information
Restaurant Information Section
Basic Details
The information card displays:Contact Information
- Phone Number: Tappable link to call the restaurant
- Email: Tappable link to send an email
- Address: Full street address for navigation
State Management
UsesPantallaRestauranteCubit to manage restaurant data loading.
Source: lib/presentacion/pantalla_restaurante/pantalla_restaurante_cubit.dart
States
Loading Restaurant Data
When the screen initializes:NegocioRepositorio.
User Actions
Navigate to Availability
Tapping the “Disponibilidad” card navigates to the availability screen:View Restaurant History
Tapping “Ver Historia” navigates to the history screen:View My Reservations
Tapping “Mis Reservas” navigates to reservations:Navigation Route
UI Components
Custom Widgets
- IconoCircular: Displays restaurant icon in a circular frame
- Action Cards: Material Design elevated buttons with icons
- Information Card: Collapsible section with full restaurant details
Layout Structure
Data Flow
Error Handling
If the restaurant data fails to load:- Name: “Restaurante”
- Specialty: “Gastronomía”
Integration with Other Features
Availability Check
Passes thenegocioId to the availability screen for table search within this specific restaurant.
Reservation Management
Filters reservations to show only those for this restaurant.Restaurant History
Loads and displays the custom history content configured by the restaurant owner.See Also
Restaurant Selection
How to browse and select restaurants
Restaurant History
View restaurant story and specialties
Checking Availability
Find and book available tables
Negocio Entity
Restaurant data structure reference