DateRanger constructor

const DateRanger({
  1. Key? key,
  2. Color? borderColors,
  3. Color? backgroundColor,
  4. Color? errorColor,
  5. Color? rangeBackground,
  6. Color? activeItemBackground,
  7. DateTimeRange? initialRange,
  8. DateTime? initialDate,
  9. OnRangeChanged? onRangeChanged,
  10. Color? inRangeTextColor,
  11. Color? outOfRangeTextColor,
  12. DateRangerType rangerType = DateRangerType.range,
  13. DateFormat? outputDateFormat,
  14. double activeDateFontSize = 16.0,
  15. double horizontalPadding = 8,
  16. double verticalPadding = 24,
  17. double itemHeight = 32,
  18. double runSpacing = 10,
  19. double activeDateBottomSpace = 10,
  20. bool showDoubleTapInfo = true,
  21. int minYear = 1940,
  22. int maxYear = 2100,
  23. 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);