DateRanger constructor
const
DateRanger({
- Key? key,
- Color? borderColors,
- Color? backgroundColor,
- Color? errorColor,
- Color? rangeBackground,
- Color? activeItemBackground,
- DateTimeRange? initialRange,
- DateTime? initialDate,
- OnRangeChanged? onRangeChanged,
- Color? inRangeTextColor,
- Color? outOfRangeTextColor,
- DateRangerType rangerType = DateRangerType.range,
- DateFormat? outputDateFormat,
- double activeDateFontSize = 16.0,
- double horizontalPadding = 8,
- double verticalPadding = 24,
- double itemHeight = 32,
- double runSpacing = 10,
- double activeDateBottomSpace = 10,
- bool showDoubleTapInfo = true,
- int minYear = 1940,
- int maxYear = 2100,
- bool showWeekDay = false,
A date picker for selecting single dates and date ranges
Implementation
const DateRanger({
Key? key,
this.borderColors,
this.backgroundColor,
this.errorColor,
this.rangeBackground,
this.activeItemBackground,
this.initialRange,
this.initialDate,
this.onRangeChanged,
this.inRangeTextColor,
this.outOfRangeTextColor,
this.rangerType = DateRangerType.range,
this.outputDateFormat,
this.activeDateFontSize = 16.0,
this.horizontalPadding = 8,
this.verticalPadding = 24,
this.itemHeight = 32,
this.runSpacing = 10,
this.activeDateBottomSpace = 10,
this.showDoubleTapInfo = true,
this.minYear = 1940,
this.maxYear = 2100,
this.showWeekDay = false,
}) : super(key: key);