update
This commit is contained in:
@@ -101,7 +101,7 @@ class _CalendarProScreenState extends State<CalendarProScreen> {
|
||||
color: const Color.fromARGB(255, 224, 247, 255),
|
||||
child: TableCalendar(
|
||||
locale: 'es_MX',
|
||||
firstDay: DateTime.utc(2010, 10, 16),
|
||||
firstDay: DateTime.now(),
|
||||
lastDay: lastDay,
|
||||
focusedDay: today,
|
||||
availableGestures: AvailableGestures.all,
|
||||
@@ -213,14 +213,19 @@ class _CalendarProScreenState extends State<CalendarProScreen> {
|
||||
),
|
||||
child: ListTile(
|
||||
onTap: () {
|
||||
Navigator.pushAndRemoveUntil(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => ServiceScreen(
|
||||
fechaSeleccionada: today, horaSeleccionada: time),
|
||||
),
|
||||
(route) => false, // Elimina todas las rutas en la pila
|
||||
);
|
||||
Navigator.pop(context, [today, time, widget.professional]);
|
||||
|
||||
// Navigator.pushAndRemoveUntil(
|
||||
// context,
|
||||
// MaterialPageRoute(
|
||||
// builder: (context) => ServiceScreen(
|
||||
// fechaSeleccionada: today,
|
||||
// horaSeleccionada: time,
|
||||
// professionalSeleccionado: widget.professional,
|
||||
// ),
|
||||
// ),
|
||||
// (route) => false,
|
||||
// );
|
||||
},
|
||||
contentPadding: const EdgeInsets.all(16),
|
||||
leading: Container(
|
||||
|
||||
Reference in New Issue
Block a user