This commit is contained in:
Felipe
2024-01-06 13:59:44 -05:00
parent a7db9d986d
commit 7977a9be24
5 changed files with 72 additions and 133 deletions
+14 -9
View File
@@ -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(