DatePickerLayoutSettings constructor

const DatePickerLayoutSettings({
  1. Duration pagesScrollDuration = _kPageScrollDuration,
  2. double dayPickerRowHeight = _kDayPickerRowHeight,
  3. double monthPickerPortraitWidth = _kMonthPickerPortraitWidth,
  4. double yearPickerPortraitWidth = _kMonthPickerPortraitWidth,
  5. int maxDayPickerRowCount = _kMaxDayPickerRowCount,
  6. EdgeInsetsGeometry contentPadding = _kContentPadding,
  7. EdgeInsetsGeometry cellContentMargin = _kCellContentMargin,
  8. bool showNextMonthStart = false,
  9. bool showPrevMonthEnd = false,
  10. bool hideMonthNavigationRow = false,
  11. ScrollPhysics? scrollPhysics,
})

Creates layout settings for the date picker.

Usually used in DayPicker, WeekPicker, RangePicker and MonthPicker.

Implementation

const DatePickerLayoutSettings({
  this.pagesScrollDuration = _kPageScrollDuration,
  this.dayPickerRowHeight = _kDayPickerRowHeight,
  this.monthPickerPortraitWidth = _kMonthPickerPortraitWidth,
  this.yearPickerPortraitWidth = _kMonthPickerPortraitWidth,
  this.maxDayPickerRowCount = _kMaxDayPickerRowCount,
  this.contentPadding = _kContentPadding,
  this.cellContentMargin = _kCellContentMargin,
  this.showNextMonthStart = false,
  this.showPrevMonthEnd = false,
  this.hideMonthNavigationRow = false,
  this.scrollPhysics,
});