SimpleYearMonthDayPickerWidget constructor

const SimpleYearMonthDayPickerWidget({
  1. Key? key,
  2. required DateTime yearMonthDayDateTime,
  3. required dynamic monthCallback(
    1. int
    ),
  4. required dynamic dayCallback(
    1. int
    ),
  5. required dynamic yearCallback(
    1. int
    ),
  6. int firstYear = 1900,
  7. int lastYear = 2100,
  8. Decoration? decoration,
  9. bool looping = true,
  10. EdgeInsetsGeometry padding = EdgeInsets.zero,
  11. double width = 400,
  12. double height = 350,
  13. double monthWidth = 110,
  14. double dayWidth = 110,
  15. double yearWidth = 150,
  16. double pickerHeight = 250,
  17. Decoration? pickerDecoration,
  18. Color pickerBackgroundColor = Colors.white,
  19. double itemHeight = 60,
  20. Alignment textAlignment = Alignment.center,
  21. TextStyle? monthTextStyle,
  22. TextStyle? dayTextStyle,
  23. TextStyle? yearTextStyle,
  24. double buttonHeight = 60,
  25. double todayButtonWidth = 200,
  26. Color todayButtonColor = Colors.white,
  27. Decoration? todayButtonDecoration,
  28. String todayButtonText = 'TODAY',
  29. TextStyle todayButtonTextStyle = const TextStyle(color: Colors.black),
  30. double doneButtonWidth = 200,
  31. Color doneButtonColor = Colors.white,
  32. Decoration? doneButtonDecoration,
  33. String doneButtonText = 'DONE',
  34. TextStyle doneButtonTextStyle = const TextStyle(color: Colors.black),
})

Implementation

const SimpleYearMonthDayPickerWidget({
  super.key,
  required this.yearMonthDayDateTime,
  required this.monthCallback,
  required this.dayCallback,
  required this.yearCallback,
  this.firstYear = 1900,
  this.lastYear = 2100,
  this.decoration,
  this.looping = true,
  this.padding = EdgeInsets.zero,
  this.width = 400,
  this.height = 350,
  this.monthWidth = 110,
  this.dayWidth = 110,
  this.yearWidth = 150,
  this.pickerHeight = 250,
  this.pickerDecoration,
  this.pickerBackgroundColor = Colors.white,
  this.itemHeight = 60,
  this.textAlignment = Alignment.center,
  this.monthTextStyle,
  this.dayTextStyle,
  this.yearTextStyle,
  this.buttonHeight = 60,
  this.todayButtonWidth = 200,
  this.todayButtonColor = Colors.white,
  this.todayButtonDecoration,
  this.todayButtonText = 'TODAY',
  this.todayButtonTextStyle = const TextStyle(color: Colors.black),
  this.doneButtonWidth = 200,
  this.doneButtonColor = Colors.white,
  this.doneButtonDecoration,
  this.doneButtonText = 'DONE',
  this.doneButtonTextStyle = const TextStyle(color: Colors.black),
});