如何在 DatePickerTimeline Flutter 中设置结束日期



我正在使用这个包https://pub.dev/packages/date_picker_timeline#-readme-tab-显示日期..但是我很困惑,有没有办法在这个包中设置结束日期..例如,我想显示从今年5月1日到去年5月的日期

来自插件构造函数

DatePicker(
this.startDate, {
Key key,
this.width = 60,
this.height = 80,
this.controller,
this.monthTextStyle = defaultMonthTextStyle,
this.dayTextStyle = defaultDayTextStyle,
this.dateTextStyle = defaultDateTextStyle,
this.selectedTextColor = Colors.white,
this.selectionColor = AppColors.defaultSelectionColor,
this.initialSelectedDate,
this.daysCount = 500,
this.onDateChange,
this.locale = "en_US",
}) : super(key: key);

它不受支持,但您可以设置天数计数this.daysCount = 500,

最新更新