Calendar constructor
const
Calendar({
- Key? key,
- String type = "single",
- String title = "日期选择",
- Color? color,
- DateTime? minDate,
- DateTime? maxDate,
- dynamic defaultDate,
- double rowHeight = Style.calendarDayHeight,
- bool poppable = true,
- bool round = true,
- bool showMark = true,
- bool showConfirm = true,
- bool closeOnClickOverlay = true,
- String confirmText = "确定",
- double height = Style.calendarHeight,
- dynamic onSelect(
- dynamic date
- dynamic onConfirm(
- dynamic date
Implementation
const Calendar(
{Key? key,
this.type: "single",
this.title: "日期选择",
this.color,
this.minDate,
this.maxDate,
this.defaultDate,
this.rowHeight: Style.calendarDayHeight,
this.poppable: true,
this.round: true,
this.showMark: true,
this.showConfirm: true,
this.closeOnClickOverlay: true,
this.confirmText: "确定",
this.height: Style.calendarHeight,
this.onSelect,
this.onConfirm})
: assert(type == 'single' || type == 'range',
"type must be single or range");