在线预订日历
想在你的应用中实现在线预订吗?那么你很幸运,你需要的就在这里!
总共 4 行代码,你就能获得一个可工作的在线预订系统,用户可以实时跟踪预订。
它可以计算日历中可能存在的冲突,并以不同的颜色显示它们。
你可以使用许多额外的参数自定义你的预订日历。
用法
查看演示示例以获取更多信息
Widget build(BuildContext context) {
return BookingCalendar(
key: key,
///These are the required parameters
getBookingStream: getBookingStream,
uploadBooking: uploadBooking,
convertStreamResultToDateTimeRanges: convertStreamResultToDateTimeRanges,
///These are only customizable, optional parameters
bookingButtonColor: bookingButtonColor,
bookingButtonText: bookingButtonText,
bookingExplanation: bookingExplanation,
bookingGridChildAspectRatio: bookingGridChildAspectRatio,
bookingGridCrossAxisCount: bookingGridCrossAxisCount,
formatDateTime: formatDateTime,
availableSlotColor: availableSlotColor,
availableSlotText: availableSlotText,
bookedSlotColor: bookedSlotColor,
bookedSlotText: bookedSlotText,
selectedSlotColor: selectedSlotColor,
selectedSlotText: selectedSlotText,
gridScrollPhysics: gridScrollPhysics,
loadingWidget: loadingWidget,
errorWidget: errorWidget,
);
}
附加信息
欢迎添加问题并在github仓库中留下评论。

