DatePickerStyles constructor

const DatePickerStyles(
  1. {DatePickerStyle dateStyle: const DatePickerStyle(decoration: BoxDecoration(color: Colors.lightBlueAccent), textStyle: TextStyle(fontWeight: FontWeight.bold, fontSize: 24.0)),
  2. DatePickerStyle headerStyle: const DatePickerStyle(decoration: BoxDecoration(color: Colors.amberAccent)),
  3. DatePickerStyle monthStyle: const DatePickerStyle(textStyle: TextStyle(color: Colors.black)),
  4. DatePickerStyle nextMonthStyle: const DatePickerStyle(textStyle: TextStyle(color: Colors.black38)),
  5. DatePickerStyle prevMonthStyle: const DatePickerStyle(textStyle: TextStyle(color: Colors.black38)),
  6. DatePickerStyle todayStyle: const DatePickerStyle(decoration: BoxDecoration(color: Colors.red, shape: BoxShape.circle)),
  7. DatePickerStyle selectedStyle: const DatePickerStyle(decoration: BoxDecoration(color: Colors.cyanAccent, shape: BoxShape.circle)),
  8. DatePickerStyle weekStyle: const DatePickerStyle(decoration: BoxDecoration(color: Colors.black12))}
)

Implementation

const DatePickerStyles({
  this.dateStyle = const DatePickerStyle(
      decoration: BoxDecoration(color: Colors.lightBlueAccent),
      textStyle: TextStyle(
        fontWeight: FontWeight.bold,
        fontSize: 24.0,
      )),
  this.headerStyle = const DatePickerStyle(
      decoration: BoxDecoration(color: Colors.amberAccent)),
  this.monthStyle =
      const DatePickerStyle(textStyle: TextStyle(color: Colors.black)),
  this.nextMonthStyle =
      const DatePickerStyle(textStyle: TextStyle(color: Colors.black38)),
  this.prevMonthStyle =
      const DatePickerStyle(textStyle: TextStyle(color: Colors.black38)),
  this.todayStyle = const DatePickerStyle(
      decoration: BoxDecoration(color: Colors.red, shape: BoxShape.circle)),
  this.selectedStyle = const DatePickerStyle(
      decoration:
          BoxDecoration(color: Colors.cyanAccent, shape: BoxShape.circle)),
  this.weekStyle =
      const DatePickerStyle(decoration: BoxDecoration(color: Colors.black12)),
});