DatePickerLayoutSettings class
Settings for the layout of the DayPicker, WeekPicker, RangePicker and MonthPicker.
Constructors
- DatePickerLayoutSettings({Duration pagesScrollDuration = _kPageScrollDuration, double dayPickerRowHeight = _kDayPickerRowHeight, double monthPickerPortraitWidth = _kMonthPickerPortraitWidth, double yearPickerPortraitWidth = _kMonthPickerPortraitWidth, int maxDayPickerRowCount = _kMaxDayPickerRowCount, EdgeInsetsGeometry contentPadding = _kContentPadding, EdgeInsetsGeometry cellContentMargin = _kCellContentMargin, bool showNextMonthStart = false, bool showPrevMonthEnd = false, ScrollPhysics? scrollPhysics})
-
Creates layout settings for the date picker.
const
Properties
- cellContentMargin → EdgeInsetsGeometry
-
Margin for decorated content of the cell.
final
- contentPadding → EdgeInsetsGeometry
-
Padding for the entire picker.
final
- dayPickerGridDelegate → SliverGridDelegate
-
Grid delegate for the picker according to dayPickerRowHeight and
maxDayPickerRowCount.
no setter
- dayPickerRowHeight → double
-
Height of the one row in picker including headers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Hide Month navigation row
false by default.
final
- maxDayPickerHeight → double
-
Maximum height of the day based picker according to dayPickerRowHeight
and maxDayPickerRowCount.
no setter
- maxDayPickerRowCount → int
-
final
- monthPickerPortraitWidth → double
-
Width of the day based pickers.
final
- pagesScrollDuration → Duration
-
Duration for scroll to previous or next page.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPhysics → ScrollPhysics?
-
Determines the scroll physics of a date picker widget.
final
- showNextMonthStart → bool
-
If the first dates from the next month should be shown
to complete last week of the selected month.
final
- showPrevMonthEnd → bool
-
If the last dates from the previous month should be shown
to complete first week of the selected month.
final
- yearPickerPortraitWidth → double
-
Width of the day based pickers.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited