DatePicker constructor
const
DatePicker({
- required DateBuilder yearBuilder,
- required DateBuilder monthBuilder,
- required DateBuilder dayBuilder,
- required Widget startWidget,
- required Widget endWidget,
- required DateController controller,
- DateModel? startDate,
- DateModel? endDate,
- BoxDecoration? pickerDecoration,
- double height = 500,
- double width = 400,
- bool scrollLoop = true,
- EdgeInsetsGeometry? padding,
- double vGap = 16,
- double pickerVisibilityHeight = 140,
- double itemHeight = 40,
- double itemWidth = 100,
- double maskHeight = 40,
- double maskRadius = 0,
- Color? maskColor = const Color.fromRGBO(242, 242, 244, 0.7),
- Color? itemBackgroundColor,
- int backwardYear = 50,
- int needYear = 110,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOutCubic,
- Widget? action,
- 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);