Open hprager07 opened 1 year ago
I actually would prefer to disable a day if there were not appointments available for it. How do I do this?
Same, not sure if it is related to the location of the folder, or is it just a missed code snippet somewhere?
`final now = DateTime.now();
class Book extends StatefulWidget { const Book({Key? key}) : super(key: key);
@override
State
class _BookState extends State
CollectionReference bookings = FirebaseFirestore.instance.collection('book');
CollectionReference
Stream
List
Future
@override Widget build(BuildContext context) { return Scaffold( body: BookingCalendar( bookedSlotColor: Colors.red, convertStreamResultToDateTimeRanges: convertStreamResultFirebase, uploadBooking: uploadBookingFirebase, getBookingStream: getBookingStreamFirebase, bookingService: BookingService( bookingStart: DateTime.now(), bookingEnd: DateTime.utc(2023, 7, 20, 20, 18, 04), serviceDuration: 30, serviceName: "Meeting" ), ), ); } }`
If all the open slots for a day are booked, I dont want the day to be disabled. Is this possible?