SimpleYearMonthPickerWidget constructor

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

Implementation

const SimpleYearMonthPickerWidget({
  super.key,
  required this.yearMonthDateTime,
  required this.monthCallback,
  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 = 200,
  this.yearWidth = 200,
  this.pickerHeight = 250,
  this.pickerDecoration,
  this.pickerBackgroundColor = Colors.white,
  this.itemHeight = 60,
  this.textAlignment = Alignment.center,
  this.monthTextStyle,
  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),
});