flutter_micro_interactions library

Pre-built micro-interactions and animations for Flutter apps.

Classes

AnimatedBadge
A count badge attached to a corner of a child that animates when the count changes.
AnimatedCheck
A checkmark or cross drawn with a progressively revealed stroke, for loading-to-result flows.
AnimatedCheckController
Programmatic control for an AnimatedCheck widget.
AnimatedCounter
A text widget that animates changes of a numeric value.
AnimatedGradientBorder
An animated sweeping gradient border around any child.
AnimatedGradientBorderController
Programmatic control for an AnimatedGradientBorder widget.
ButtonStateController
Programmatic control surface for a ButtonStates widget.
ButtonStates
Animates a button (or any widget) between idle, loading, success and error content.
CardFlip
A card with a front and a back face joined by a 3D flip animation.
CardFlipController
Programmatic control for a CardFlip widget.
CardSkeleton
A skeleton shaped like a card with an optional image area, a title and a subtitle block.
ElasticGridView
A GridView preconfigured with ElasticScrollPhysics.
ElasticListView
A ListView preconfigured with ElasticScrollPhysics.
ElasticScroll
A thin wrapper that scrolls its child with ElasticScrollPhysics.
ElasticScrollPhysics
Scroll physics that let content overscroll past its edges with a configurable resistance, then spring back into place.
ExpandableFab
A floating action button that expands into a set of mini action buttons, linearly or on a radial arc, with a staggered entrance.
ExpandableFabAction
One action of an ExpandableFab.
ExpandableFabController
Programmatic control for an ExpandableFab.
FloatingLabel
A text field whose label animates between the hint position and a floated position above the input text.
GridItemSkeleton
A skeleton shaped like a grid tile: an image area with title and subtitle lines below it.
HoverGlow
Adds an animated glow around its child on mouse hover or keyboard focus.
InputFocus
Gently scales and lifts its child when a descendant gains focus.
LiquidProgress
A progress indicator filled with an animated liquid wave.
ListItemSkeleton
A skeleton shaped like a list tile: optional leading avatar, title and subtitle lines, and an optional trailing box.
LoadingSkeleton
A rectangular placeholder with an animated shimmer highlight.
LongPressMenu
Shows a context menu when the child is long pressed.
LongPressMenuItem
One entry of a LongPressMenu.
MicroMotion
Utilities to respect the platform "reduce motion" accessibility setting.
MicroNavigator
Static navigation helpers that push pages with a MicroPageRoute.
MicroPageRoute<T>
A PageRoute with a configurable micro transition.
MicroReorderableList
A reorderable list with a polished lift effect on the dragged item.
MicroSwipeAction
Describes one revealable action of a SwipeActions row.
MorphingShapes
A widget that cycles through a list of shapes with a real path morph.
MorphingShapesController
Programmatic control for a MorphingShapes widget.
ParallaxImage
An image that shifts vertically as it moves through an ancestor scrollable, creating a parallax effect for list items.
ParallaxLayer
A decorative layer of a ParallaxScroll, with its own depth factor.
ParallaxScroll
A scrollable area whose background pans slower than the foreground, producing a depth (parallax) effect.
PullToRefresh
A thin wrapper around RefreshIndicator that adds pull-to-refresh to a scrollable child.
PulseHighlight
Expanding pulse rings around a child to draw the user's attention.
PulseHighlightController
Programmatic control for a PulseHighlight widget.
RippleButton
A ready-made button surface with the package's RippleEffect.
RippleEffect
Paints expanding circular ripples on top of its child when tapped.
ShakeAnimation
Plays a horizontal shake animation on demand.
ShakeButton
Builds a button-like widget that shakes when pressed while invalid.
ShakeController
Programmatic trigger for ShakeToAction and ShakeAnimation.
ShakeToAction
Detects a vigorous back-and-forth drag ("shake" gesture) on its child and runs onShake with a shake animation.
ShapeMorph
A widget that morphs between exactly two shapes, toggling on tap.
ShimmerButton
A button with a periodic shimmer sweep across its surface, meant for primary calls to action.
SkeletonLoader
Cross-fades between a skeleton and the real content.
SkeletonScope
A scope that shares a single shimmer animation between every skeleton below it.
SlideToConfirm
A slide-to-confirm control: the user drags a thumb across a track to the end to confirm an action, in the style of payment and destructive action confirmations.
SlideToConfirmController
Programmatic control for a SlideToConfirm widget.
StaggeredItem
A single item of a staggered entrance, usable inside any list or column.
StaggeredList
A scrollable list whose children animate in one after another with a classic staggered entrance (fade plus slide by default).
SuccessBurst
A one-shot particle burst for success confirmations.
SuccessBurstController
Programmatic control for a SuccessBurst widget.
SwipeActions
A slide-to-reveal wrapper that exposes tappable actions behind a list item, in the style of mail and messaging apps.
TapFeedback
Wraps any widget and plays a short visual feedback animation on tap.
TextSkeleton
A skeleton made of one or more text-like lines.
ToastNotification
Overlay based toast notifications.
TypewriterController
Programmatic control for a TypewriterText.
TypewriterText
Text that types itself out character by character, with an optional blinking cursor, optional deleting and support for cycling through several strings.
WaterRipple
Draws looping concentric waves behind its child, like water ripples.
WaterRippleController
Programmatic control for a WaterRipple.

Enums

AnimatedCheckType
The mark drawn by an AnimatedCheck.
CounterAnimationMode
How an AnimatedCounter animates between values.
ExpandableFabDirection
The direction in which an ExpandableFab fans out its actions.
LiquidProgressShape
The outline shape of a LiquidProgress indicator.
MicroButtonState
The possible visual states of a ButtonStates widget.
MicroShapeType
The shapes that MorphingShapes and ShapeMorph can draw and morph between.
MicroTransitionType
The transition styles supported by MicroPageRoute.
ParticleShape
Shape of the particles emitted by a SuccessBurst.
StaggerEffect
The entrance animation played by StaggeredItem and StaggeredList.
TapAnimationType
The visual effect played by TapFeedback when the child is pressed.
ToastPosition
Where a toast is placed on screen.
ToastType
Semantic style of a toast, controlling its default colors and icon.

Extensions

ToastContext on BuildContext
Convenience access to ToastNotification.show from a BuildContext.