Custom Calendar
A customizable calendar widget for Flutter to display present days, holidays, leave days, weekends, and more. Ideal for HR or attendance apps.
Features
- Swipeable monthly view
- Custom colors and styles for each type of day
- Easy integration into any app
Usage
import 'package:custom_calendar/custom_calendar.dart';
CustomCalendar(
initialMonth: DateTime.now(),
onMonthChanged: (date, index) {
print("Changed to $date");
},
dayStatusMap: {
'present': [1, 2, 5, 8, 12],
'leave': [4, 6, 9],
},
statusColors: {
'present': Colors.green,
'leave': Colors.red,
},
statusTextStyles: {
'present': const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
'leave': const TextStyle(color: Colors.white),
},
)