diff --git a/lib/src/controller.dart b/lib/src/controller.dart index 2ab989a4..224f6b5c 100644 --- a/lib/src/controller.dart +++ b/lib/src/controller.dart @@ -260,8 +260,24 @@ class SlidableController { Duration duration = _defaultMovementDuration, Curve curve = _defaultCurve, }) async { + double extentRatio = 0.5; // equal to _defaultExtentRatio + if (actionPaneConfigurator == null) { + switch (actionPaneType.value) { + case ActionPaneType.start: + extentRatio = _startActionPaneExtentRatio; + break; + case ActionPaneType.end: + extentRatio = _endActionPaneExtentRatio; + break; + case ActionPaneType.none: + break; + } + } else { + extentRatio = actionPaneConfigurator!.extentRatio; + } + return openTo( - actionPaneConfigurator!.extentRatio, + extentRatio, duration: duration, curve: curve, );