marquee_transition 1.3.0
marquee_transition: ^1.3.0 copied to clipboard
A smooth, configurable marquee text and widget scrolling transition for Flutter.
Changelog #
1.3.0 #
- Single-Child Viewport Mode (
fillViewport):- Added
fillViewportparameter (defaults tofalse) to automatically expand each child item to occupy 100% of the visible viewport extent (width for horizontal, height for vertical). - Eliminates trailing edge text truncation and visual clutter, ensuring exactly one clean announcement/alert item is visible at rest.
- Highly recommended for alert banners, breaking news bars, and headline steppers with
snap: true.
- Added
- Custom Item Extent (
itemExtent):- Added
itemExtentparameter (double?) to enforce an explicit fixed dimension per child item (ideal for card carousel tracks).
- Added
- Subpixel-Accurate Snap Positioning (
localToGlobal):- Replaced manual cumulative offset summing with live
RenderBox.localToGlobalrelative positioning against the sequence container. - Eliminates subpixel rounding drift and font layout discrepancies, preventing leading edge clipping.
- Replaced manual cumulative offset summing with live
- Vertical Snap Flipper Support:
- First-class vertical headline/alert flipper support (
direction: AxisDirection.downorAxisDirection.up) withfillViewport: true.
- First-class vertical headline/alert flipper support (
1.2.0 #
- Item-by-Item Snap Mode:
- Added
snapparameter (defaults tofalse) to enable stepped paging marquee that stops at each child widget. - Added
snapDelayparameter (defaults to3s) for configurable pause time at each child before transitioning. - Added
snapDurationandsnapCurve(defaults toCurves.easeInOutCubic) for silky-smooth cubic easing between items. - Added
onSnapcallback fired whenever the marquee lands on a child index. - Fully supports both seamless endless wrap-around and ping-pong mirror mode.
- Integrated with
pauseOnHoverandpauseOnTouchto freeze both transition animations and snap pause timers.
- Added
1.1.0 #
- Accessibility (A11y):
- Added
respectReduceMotion(defaults totrue) to automatically honor system-leveldisableAnimations/ "Reduce Motion" accessibility settings. - Added
ExcludeSemanticsto duplicate wrap-around sequence copies so screen readers only read the marquee content once.
- Added
- Responsive Layout: Wrapped marquee in
LayoutBuilderto dynamically adaptrepeatCountand sequence replication upon window and viewport resizing. - Mobile Interaction: Added
pauseOnTouchparameter (PointerDownEvent,PointerUpEvent,PointerCancelEvent) for smooth tap-and-hold pause on touchscreens. - Ergonomic Spacing: Added
gapparameter (defaults to16.0) for quick declarative spacing configuration without requiring a manualdividerwidget. - Test Suite: Expanded test suite to 23 widget tests with 98.53% code coverage.
1.0.0 #
- Seamless Endless Loop: Rewrote ticker mechanics to support true continuous 60/120fps wrap-around scrolling without pauses, visual jumps, or viewport gaps.
- Mirror Mode Overhaul: Fixed ping-pong loop execution to honor
repeatcount,delay,reverseDelay,reverseDuration, andreverseCurve. - Constant Velocity: Added
velocityparameter (logical pixels/second) to guarantee uniform scroll speed across varied content lengths. - Pause on Hover: Added
pauseOnHoverparameter usingMouseRegionfor native desktop and web interaction. - Fading Edge Gradients: Added
fadingEdgeandfadingEdgeRatiousingShaderMaskfor soft visual edge fades. - Divider Support: Added
dividerparameter to inject custom decorative elements or spacing between children and loop sequences. - Convenience Constructor: Added
MarqueeTransition.text(...)for effortless single-string marquee tickers. - Imperative Control: Added
pause(),resume(), andrestart()methods toMarqueeTransitionState. - Test Coverage: Achieved 99.16% test suite coverage with 19 comprehensive widget tests.