DatePickerTheme constructor

const DatePickerTheme({
  1. String yearSuffix = '年',
  2. String monthSuffix = '月',
  3. String daySuffix = '日',
  4. TextStyle style = const TextStyle(fontSize: 14, color: Color(0xFF333333)),
  5. TextStyle confirmStyle = const TextStyle(fontSize: 14, color: Color(0xFF2878FF)),
  6. TextStyle cancelStyle = const TextStyle(fontSize: 14, color: Color(0xFF333333)),
  7. BoxDecoration? cancelDecoration,
  8. BoxDecoration? confirmDecoration,
  9. 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),
});