DatePicker constructor

const DatePicker({
  1. required DateBuilder yearBuilder,
  2. required DateBuilder monthBuilder,
  3. required DateBuilder dayBuilder,
  4. required Widget startWidget,
  5. required Widget endWidget,
  6. required DateController controller,
  7. DateModel? startDate,
  8. DateModel? endDate,
  9. BoxDecoration? pickerDecoration,
  10. double height = 500,
  11. double width = 400,
  12. bool scrollLoop = true,
  13. EdgeInsetsGeometry? padding,
  14. double vGap = 16,
  15. double pickerVisibilityHeight = 140,
  16. double itemHeight = 40,
  17. double itemWidth = 100,
  18. double maskHeight = 40,
  19. double maskRadius = 0,
  20. Color? maskColor = const Color.fromRGBO(242, 242, 244, 0.7),
  21. Color? itemBackgroundColor,
  22. int backwardYear = 50,
  23. int needYear = 110,
  24. Duration duration = const Duration(milliseconds: 300),
  25. Curve curve = Curves.easeInOutCubic,
  26. Widget? action,
  27. Key? key,
})

Implementation

const DatePicker(
    {
      required this.yearBuilder,
      required this.monthBuilder,
      required this.dayBuilder,
      required this.startWidget,
      required this.endWidget,
      required this.controller,
      this.startDate,
      this.endDate,
      this.pickerDecoration,
      this.height = 500,
      this.width = 400,
      this.scrollLoop = true,
      this.padding,
      this.vGap = 16,
      this.pickerVisibilityHeight = 140,
      this.itemHeight = 40,
      this.itemWidth = 100,
      this.maskHeight = 40,
      this.maskRadius = 0,
      this.maskColor = const Color.fromRGBO(242, 242, 244, 0.7),
      this.itemBackgroundColor,
      this.backwardYear = 50,
      this.needYear = 110,
      this.duration = const Duration(milliseconds: 300),
      this.curve = Curves.easeInOutCubic,
      this.action,
      Key? key}) : super(key: key);