一个使用Flutter 编写的日历组件
import 'package:flutter_prada_calendar/calendar.dart';
Map<DateTime, int> map;
map = new Map();
map.putIfAbsent(new DateTime.now(), () {
return 2;
});
new CalendarWidget(
//controller: controller,
topColor: Colors.blue,
onDateClick: (time) {
print(time);
},
calendarMap: map,
)