DatePickerTheme constructor
const
DatePickerTheme({
- String yearSuffix = '年',
- String monthSuffix = '月',
- String daySuffix = '日',
- TextStyle style = const TextStyle(fontSize: 14, color: Color(0xFF333333)),
- TextStyle confirmStyle = const TextStyle(fontSize: 14, color: Color(0xFF2878FF)),
- TextStyle cancelStyle = const TextStyle(fontSize: 14, color: Color(0xFF333333)),
- BoxDecoration? cancelDecoration,
- BoxDecoration? confirmDecoration,
- EdgeInsets topBarPadding = const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
Implementation
const DatePickerTheme({
this.yearSuffix = '年',
this.monthSuffix = '月',
this.daySuffix = '日',
this.style = const TextStyle(fontSize: 14, color: Color(0xFF333333)),
this.confirmStyle = const TextStyle(fontSize: 14, color: Color(0xFF2878FF)),
this.cancelStyle = const TextStyle(fontSize: 14, color: Color(0xFF333333)),
this.cancelDecoration,
this.confirmDecoration,
this.topBarPadding =
const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
});