WeekCalendarStyle constructor

const WeekCalendarStyle({
  1. TextStyle monthHeaderStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
  2. TextStyle dayNameStyle = const TextStyle(fontSize: 12),
  3. TextStyle dayNumberStyle = const TextStyle(fontSize: 16),
  4. Color activeDayColor = Colors.blueAccent,
  5. Color dayIndicatorColor = Colors.transparent,
  6. double dayIndicatorSize = 28,
  7. Border? dayIndicatorBorder,
  8. BoxShadow? dayIndicatorShadow,
  9. TextStyle selectedDayTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
  10. TextStyle inactiveDayTextStyle = const TextStyle(fontSize: 16),
  11. bool showParticles = false,
  12. Duration selectionAnimationDuration = const Duration(milliseconds: 300),
  13. Curve selectionAnimationCurve = Curves.easeOutBack,
})

Creates a style configuration for the calendar

Implementation

const WeekCalendarStyle({
  this.monthHeaderStyle =
      const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
  this.dayNameStyle = const TextStyle(fontSize: 12),
  this.dayNumberStyle = const TextStyle(fontSize: 16),
  this.activeDayColor = Colors.blueAccent,
  this.dayIndicatorColor = Colors.transparent,
  this.dayIndicatorSize = 28,
  this.dayIndicatorBorder,
  this.dayIndicatorShadow,
  this.selectedDayTextStyle =
      const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
  this.inactiveDayTextStyle = const TextStyle(fontSize: 16),
  this.showParticles = false,
  this.selectionAnimationDuration = const Duration(milliseconds: 300),
  this.selectionAnimationCurve = Curves.easeOutBack,
});