animated_stack_plus 1.1.2
animated_stack_plus: ^1.1.2 copied to clipboard
A flexible and modern animated Floating Action Button (FAB) stack for Flutter with custom icons, builders, and smooth animations.
Changelog #
1.1.2 #
Fixed #
- Action buttons beyond the slide area (e.g. a tall column) were visible but ignored taps, because Flutter's Scaffold only hit-tests its FAB slot within the slot's bounds. The slot now sizes itself to the FAB plus the revealed actions, so every action is tappable.
- Calling
closeFabafter the widget was disposed (e.g. from an async action callback) no longer throws. - The previous
CurvedAnimationis now disposed whenopenAnimationCurveorcloseAnimationCurvechanges.
Changed #
- Action builders now run only while the menu is open.
Documentation #
- Documented that the foreground slides by
scale + fabSize + actionsSpacing, that actions beyond that area overlay the foreground, and that column items should be no wider thanfabSizeand row items no taller thanfabSize. - README: corrected the
closeAnimationCurvedefault (Curves.easeInOut) and the install version; the example no longer creates aGlobalKeyinsidebuild; added known limitations. - Added library and constructor doc comments, enabled
public_member_api_docs. - Added pub.dev
screenshotsand refreshedtopics. - Added widget tests.
Note #
- 1.1.0 renamed
fabOpenIcon/fabCloseIcontofabOpenWidget/fabCloseWidgetin a minor release. That is a breaking change for anyone upgrading from 1.0.x; see the 1.1.0 entry for the migration.
1.1.0 #
Breaking #
- Renamed
fabOpenIconandfabCloseIcon(previously restricted to the standardIcontype) tofabOpenWidgetandfabCloseWidgetof typeWidget. This grants full visual design freedom, allowing users to pass SVGs, custom images, or complex widgets.
Added #
- Added
fabSize(default:56.0) to customize Floating Action Button dimensions. - Added
actionsSpacing(default:16.0) to define spacing between the FAB and revealed background actions. - Introduced
foregroundDimColorto render an animated fading background color overlay across the translated primary UI.
Fixed #
- SnackBar Alignment Break: Repositioned background actions inside the native
FloatingActionButtonLocation.endFloatslot. This resolves the alignment issue where a SnackBar or keyboard shifted the FAB upward, leaving background actions behind. - Hit-Test Boundaries: Introduced a customized
_OverflowTouchStackto bypass default bounding box clipping, ensuring action buttons that extend past physical container sizes are fully clickable. - Visual Overflow Warnings: Removed internal hardcoded constraints (
ConstrainedBox), resolving yellow-and-red stripedBOTTOM OVERFLOWEDvisual layout errors.
Optimizations #
- Switched from fractional
SlideTransitionmath to absolute physical pixel translation viaTransform.translate. This completely decouples calculations fromMediaQueryDatainside the build lifecycle, reducing GC allocations and performance overhead.
1.0.1 #
- Improved README with better structure, polished examples, and added demo GIF/video preview for web usage.
1.0.0 #
- Initial release
