controller.moveToCalendar无效的问题

develop
donggua.lin 5 years ago
parent ff473179ba
commit e7b3f73d76

@ -160,7 +160,7 @@ class CalendarController {
{bool needAnimation = false, {bool needAnimation = false,
Duration duration = const Duration(milliseconds: 500), Duration duration = const Duration(milliseconds: 500),
Curve curve = Curves.ease}) { Curve curve = Curves.ease}) {
DateModel dateModel = DateModel.fromDateTime(DateTime(year, month, day)); DateModel dateModel = DateModel.fromDateTime(DateTime(year, month, 1));
// //
int targetPage = monthList.indexOf(dateModel); int targetPage = monthList.indexOf(dateModel);
if (targetPage == -1) { if (targetPage == -1) {

Loading…
Cancel
Save