lunar_datetime_picker 0.0.1 lunar_datetime_picker: ^0.0.1 copied to clipboard
A lunar_datetime_picker for writing Flutter applications
Flutter 农历日期选择器 #
| 阳历显示 | 阴历显示 | | ------------------------- | ------------------------------- | -------------------------------- | | | | |
引用 #
flutter_lunar_datetime_picker: ^last_version
使用 #
DatePicker.showDatePicker(
context,
lunarPicker: false,
dateInitTime: DateInitTime(
currentTime: DateTime.now(),
maxTime: DateTime(2026, 12, 12),
minTime: DateTime(2018, 3, 4)),
onConfirm: (time) {
debugPrint(time.toString());
},
onChanged: (time) {
debugPrint("change:${time.toString()}");
},
);
感谢 #
-
flutter_datetime_picker 提供 PickerView 方案
-
lunar_flutter 提供农历日期算法