flutter_micro_interactions 0.2.0
flutter_micro_interactions: ^0.2.0 copied to clipboard
Pre-built micro-interactions and animations for Flutter: tap feedback, toasts, shimmer buttons, slide-to-confirm, staggered lists, typewriter text, and more.
0.2.0 #
New animations, built on the stable 0.1.0 base. No breaking changes.
Added #
SuccessBurst: one-shot particle burst for success confirmations, withSuccessBurstControllerand support for repeated bursts.PulseHighlight: expanding pulse rings that draw attention to a widget, withPulseHighlightController, auto play, and an optional pulse limit.AnimatedCounter: animated number changes with two modes, numeric count and odometer-style sliding digits.AnimatedBadge: a count badge attached to a corner of a widget that scales in and out and bounces when the count changes.StaggeredList: staggered entrance animation for list children, with abuilderconstructor and a standaloneStaggeredItemfor custom layouts.ShimmerButton: a call-to-action button with a periodic shimmer sweep, keyboard activation, and press feedback.SlideToConfirm: slide a thumb across a track to confirm an action, with a spring return, a confirmed state, and a direct confirm action for screen readers and keyboards.ExpandableFab: a floating action button that expands into a set of action buttons, linearly or radially, with staggered entrance.AnimatedCheck: a checkmark or cross drawn with an animated stroke, for loading-to-result flows.AnimatedGradientBorder: an animated sweeping gradient border around any widget.TypewriterText: text that types itself out, with a blinking cursor, deletion, and cycling through several strings.LiquidProgress: a progress indicator filled with an animated liquid wave, in circle or rectangle shape.
All new widgets follow the package conventions: duration, curve, and
enabled parameters, reduced motion support, screen reader support, and
theme-aware default colors.
0.1.0 #
Stabilization release. This version fixes broken behavior, renames classes that conflicted with the Flutter SDK and popular packages, unifies the API, and adds accessibility support across the package.
Breaking changes #
- Renamed
ReorderableListtoMicroReorderableList(conflicted with the Flutter SDK). - Removed
TransitionRoute(conflicted with the Flutter SDK). UseMicroNavigatorhelpers instead. - Renamed
PageTransitiontoMicroPageRouteandPageTransitionTypetoMicroTransitionType. - Removed
SharedAxisTransitionandHeroTransition. - Renamed
SwipeActiontoMicroSwipeAction. - Renamed
MenuItemtoLongPressMenuItem. - Renamed
ShapeTypetoMicroShapeType. - Renamed
ButtonStatetoMicroButtonState.ButtonStatesis now driven by aButtonStateControllerinstead of aGlobalKey, and state widgets are now builders (loadingBuilder,successBuilder,errorBuilder). - Removed the extensions on
List<Widget>andWidget(ReorderableListExtension,withCardFlip). - Removed the unused
onMenuItemSelectedparameter fromLongPressMenu. - Minimum Flutter version is now 3.38.
Fixed #
MorphingShapesnow morphs between shapes with real path interpolation instead of switching halfway through the animation.ElasticScrollnow applies real elastic resistance and an animated snap back.elasticityandstiffnessare honored.ParallaxScrollandParallaxImagenow produce a real parallax effect.FloatingLabelnow animates the label on focus, and itsvalidatorworks withForm.validate(). The error message is no longer shown twice.- Toast notifications: the close button now dismisses the toast, toasts animate out, timers are cancelled correctly, and multiple toasts no longer overlap.
ShakeToActionno longer fires on a simple drag. It now requires a real back-and-forth gesture, and can be triggered programmatically withShakeController.HoverGlownow fades out smoothly when the pointer leaves the widget.SwipeActionsnow reveals a row of tappable actions, supports more than one action per side, and honorsactionExtentRatio.MicroReorderableListno longer crashes when the list of children grows.CardFlipno longer gets out of sync after rapid taps, and supports both controlled and uncontrolled use.TextSkeletonnow renders the shorter last line correctly.- Widgets now react to configuration changes (
duration,curve, controllers) after the first build, and animations are guarded against use after dispose.
Added #
- Reduced motion support across the package. Animations respect the platform "reduce motion" setting.
- Screen reader support: semantic buttons, state announcements, custom semantic actions for swipe and long press, and live region announcements for toasts.
- Keyboard support for interactive widgets (focus highlight and activation with Enter and Space).
- Controllers for programmatic use:
ButtonStateController,CardFlipController,MorphingShapesController,ShakeController,WaterRippleController. ToastPosition, toast styling options, action button, and toast stacking.- Builder constructors for lists (
ElasticListView.builder,MicroReorderableList.builder). PullToRefresh.adaptiveand fullRefreshIndicatorparameter passthrough.- Theme-aware default colors, including dark mode support for skeletons.
- Documentation comments for the whole public API.
0.0.2 #
- Added Toast Notifications (animated, multiple styles)
- Added Floating Label Animation (with validation)
- Added Reorderable List Animation (drag & drop, feedback)
- Added Card Flip Animation (3D flip, perspective)
0.0.1 #
- Initial release of flutter_micro_interactions package
- Added ButtonStates widget for interactive button animations
- Added ElasticScroll widget for elastic scrolling effects
- Added HoverGlow widget for hover animations
- Added InputFocus widget for input field animations
- Added LoadingSkeletons widget for loading state animations
- Added LongPressMenu widget for long press interactions
- Added MorphingShapes widget for shape morphing animations
- Added PageTransitions widget for custom page transitions
- Added ParallaxScroll widget for parallax scrolling effects
- Added PullToRefresh widget for pull-to-refresh animations
- Added RippleEffect widget for ripple animations
- Added ShakeToAction widget for shake detection
- Added SwipeActions widget for swipe interactions
- Added TapFeedback widget for tap animations