|
|
@ -54,13 +54,17 @@ class _WeekViewPagerState extends State<WeekViewPager>
|
|
|
|
if (calendarProvider.expandStatus.value == true) {
|
|
|
|
if (calendarProvider.expandStatus.value == true) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LogUtil.log(
|
|
|
|
LogUtil.log(
|
|
|
|
TAG: this.runtimeType,
|
|
|
|
TAG: this.runtimeType,
|
|
|
|
message:
|
|
|
|
message:
|
|
|
|
"WeekViewPager PageView onPageChanged,position:$position");
|
|
|
|
"WeekViewPager PageView onPageChanged,position:$position");
|
|
|
|
// 周视图的变化
|
|
|
|
|
|
|
|
DateModel firstDayOfWeek = configuration.weekList[position];
|
|
|
|
DateModel firstDayOfWeek = configuration.weekList[position];
|
|
|
|
int currentMonth = firstDayOfWeek.month;
|
|
|
|
int currentMonth = firstDayOfWeek.month;
|
|
|
|
|
|
|
|
// 周视图的变化
|
|
|
|
|
|
|
|
configuration.weekChangeListeners.forEach((listener) {
|
|
|
|
|
|
|
|
listener(firstDayOfWeek.year, firstDayOfWeek.month);
|
|
|
|
|
|
|
|
});
|
|
|
|
if (lastMonth != currentMonth) {
|
|
|
|
if (lastMonth != currentMonth) {
|
|
|
|
LogUtil.log(
|
|
|
|
LogUtil.log(
|
|
|
|
TAG: this.runtimeType,
|
|
|
|
TAG: this.runtimeType,
|
|
|
|