Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down