阳历显示 | 阴历显示 |
---|---|
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 提供农历日期算法