flutter_swipe_actions 0.3.7
flutter_swipe_actions: ^0.3.7 copied to clipboard
Smooth iOS Mail-inspired swipe actions for Flutter lists, with a reusable controller and customizable action buttons.
0.3.7 #
- Restored the original visual action order while keeping progressive reveal from the physical swipe edge.
- Made each action scale continuously through its own swipe segment so actions appear and disappear smoothly while dragging.
- Kept every action fixed in its final slot while the revealed area is clipped, preventing actions from sliding as their centered scale animation runs.
- Preserved the configured action spacing between the moving item and the nearest action.
0.3.6 #
- Fixed progressive action positioning so leading and trailing actions reveal in the same order they are declared from the swipe edge inward.
- Changed the progressive scale animation to grow from each action's center instead of from a side edge.
- Added regression coverage for visual order and centered scale alignment.
0.3.5 #
- Changed progressive action visibility to scale in and scale out instead of appearing abruptly when each action fits in the revealed swipe space.
- Kept actions mounted while hidden so closing can animate smoothly without intercepting taps or semantics.
- Preserved the width-aware reveal order from the moving item edge for both leading and trailing actions.
0.3.4 #
- Fixed progressive reveal order for leading and trailing actions. Actions now appear from the moving item edge outward in the same logical order provided by the developer.
- Kept the first declared action closest to the swiped item for both swipe directions.
- Made
SwipeActionButtonadapt to compact row heights to avoid overflow in dense list items.
0.3.3 #
- Added progressive action reveal while swiping. Actions now appear only when the revealed swipe distance has enough room for each complete action, and disappear in the same width-aware order while closing.
- Applied the progressive reveal to both leading and trailing actions while preserving adaptive action widths, item/action spacing, and fixed-width overrides.
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.