File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ class EnsembleCalendar extends StatefulWidget
75
75
duration: const Duration (milliseconds: 300 ), curve: Curves .easeOut),
76
76
'addRowSpan' : (value) => setRowSpan (value),
77
77
'update' : () => _controller.update (),
78
+ 'clearRange' : () => clearRange (),
78
79
};
79
80
}
80
81
@@ -119,6 +120,12 @@ class EnsembleCalendar extends StatefulWidget
119
120
};
120
121
}
121
122
123
+ void clearRange () {
124
+ _controller.rangeStart = null ;
125
+ _controller.rangeEnd = null ;
126
+ _controller.range = null ;
127
+ }
128
+
122
129
void setRowSpanItemTemplate (dynamic rowSpanData) {
123
130
try {
124
131
if (rowSpanData is ! Map ||
@@ -308,9 +315,6 @@ class EnsembleCalendar extends StatefulWidget
308
315
updatedDisabledDays.remove (date);
309
316
}
310
317
311
- _controller.rangeStart = null ;
312
- _controller.rangeEnd = null ;
313
- _controller.range = null ;
314
318
_controller.selectedDays.value = updatedDisabledDays;
315
319
}
316
320
You can’t perform that action at this time.
0 commit comments