File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,21 @@ class SlidableController {
225
225
/// Dispatches a new [EndGesture] determined by the given [velocity] and
226
226
/// [direction] .
227
227
void dispatchEndGesture (double ? velocity, GestureDirection direction) {
228
+ final isScrollingIntoDisabledEndActionPane = enableStartActionPane &&
229
+ ! enableEndActionPane &&
230
+ this .direction.value == 0 &&
231
+ direction == GestureDirection .closing;
232
+ final isScrollingIntoDisabledStartActionPane = ! enableStartActionPane &&
233
+ enableEndActionPane &&
234
+ this .direction.value == 0 &&
235
+ direction == GestureDirection .opening;
236
+ final isScrollingIntoDisabledPane = isScrollingIntoDisabledEndActionPane ||
237
+ isScrollingIntoDisabledStartActionPane;
238
+
239
+ if (isScrollingIntoDisabledPane) {
240
+ return ;
241
+ }
242
+
228
243
if (velocity == 0 || velocity == null ) {
229
244
endGesture.value = StillGesture (direction);
230
245
} else if (velocity.sign == this .direction.value) {
You can’t perform that action at this time.
0 commit comments