flutter_swipe_actions 0.3.2
flutter_swipe_actions: ^0.3.2 copied to clipboard
Smooth iOS Mail-inspired swipe actions for Flutter lists, with a reusable controller and customizable action buttons.
0.3.2 #
- Fixed compact leading action reveal distance when using adaptive action widths.
SwipeActionButtonnow provides an upfront preferred width so small actions do not open with the broader fallback width before measurement finishes. - Kept
estimatedActionWidthas the fallback only for fully custom action widgets that cannot expose their preferred width ahead of layout.
0.3.1 #
- Made action widths adaptive by default.
SwipeActionsnow measures each visible action and usesestimatedActionWidthonly as the first-frame fallback. - Kept
actionWidthas an optional fixed-width override for designs that need deterministic action sizes. - Added
minActionWidthandmaxActionWidthto keep adaptive actions visually controlled. - Added
closedBackgroundColorandopenedBackgroundColorconvenience options. - Defaulted the closed item surface to
colorScheme.surfacebefore the opened background interpolation begins. - Matched the gap between the item and the first action to the gap between actions.
- Added optional
SwipeActionButton.widthfor standalone usage while keeping it flexible insideSwipeActions.
0.3.0 #
- Added
SwipeActionButton.closeOnPressed, enabled by default, so Mail-style actions close the row after a successful tap. - Added
SwipeActionButton.tooltipand improved semantics, disabled visuals, mouse cursor behavior, and desktop/web affordances. - Added
SwipeActions.maybeOf(context)for custom action widgets that need to close the nearest swipe row. - Updated
onOpenedandonClosedto fire when the animation completes. - Added
onOpenChangedandonAnimationCompletedcallbacks. - Added
SwipeController.hasOpenItemandSwipeController.openSideas stable public getters while keeping previous getters compatible. - Expanded widget tests for action taps, auto-close, callbacks, controller coordination, and RTL leading actions.
- Cleaned README examples to avoid app-specific copy.
0.2.0 #
- Added
itemBorderRadiusto customize the opened swipe item shape without rebuilding the full decoration. - Improved swipe hit testing so visible action buttons receive taps instead of the opened item closing first.
- Improved
SwipeActionButtonvertical alignment with a fixed height and single-line labels with ellipsis. - Documented the public API with Dart documentation comments.
- Documented
SwipeActionButtonas the recommended default action widget while keepingSwipeActionsflexible withList<Widget>.
0.1.0 #
- Initial release.
- Added
SwipeActionswith leading and trailing actions. - Added
SwipeControllerto coordinate open swipe rows across a list. - Added
SwipeActionButtonfor customizable circular actions with labels. - Added RTL-aware swipe direction handling.
- Added animated decoration and action transitions for an iOS Mail-inspired feel.