Skip to main content

marquee_transition 1.3.0 copy "marquee_transition: ^1.3.0" to clipboard
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 fillViewport parameter (defaults to false) 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.
  • Custom Item Extent (itemExtent):
    • Added itemExtent parameter (double?) to enforce an explicit fixed dimension per child item (ideal for card carousel tracks).
  • Subpixel-Accurate Snap Positioning (localToGlobal):
    • Replaced manual cumulative offset summing with live RenderBox.localToGlobal relative positioning against the sequence container.
    • Eliminates subpixel rounding drift and font layout discrepancies, preventing leading edge clipping.
  • Vertical Snap Flipper Support:
    • First-class vertical headline/alert flipper support (direction: AxisDirection.down or AxisDirection.up) with fillViewport: true.

1.2.0 #

  • Item-by-Item Snap Mode:
    • Added snap parameter (defaults to false) to enable stepped paging marquee that stops at each child widget.
    • Added snapDelay parameter (defaults to 3s) for configurable pause time at each child before transitioning.
    • Added snapDuration and snapCurve (defaults to Curves.easeInOutCubic) for silky-smooth cubic easing between items.
    • Added onSnap callback fired whenever the marquee lands on a child index.
    • Fully supports both seamless endless wrap-around and ping-pong mirror mode.
    • Integrated with pauseOnHover and pauseOnTouch to freeze both transition animations and snap pause timers.

1.1.0 #

  • Accessibility (A11y):
    • Added respectReduceMotion (defaults to true) to automatically honor system-level disableAnimations / "Reduce Motion" accessibility settings.
    • Added ExcludeSemantics to duplicate wrap-around sequence copies so screen readers only read the marquee content once.
  • Responsive Layout: Wrapped marquee in LayoutBuilder to dynamically adapt repeatCount and sequence replication upon window and viewport resizing.
  • Mobile Interaction: Added pauseOnTouch parameter (PointerDownEvent, PointerUpEvent, PointerCancelEvent) for smooth tap-and-hold pause on touchscreens.
  • Ergonomic Spacing: Added gap parameter (defaults to 16.0) for quick declarative spacing configuration without requiring a manual divider widget.
  • 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 repeat count, delay, reverseDelay, reverseDuration, and reverseCurve.
  • Constant Velocity: Added velocity parameter (logical pixels/second) to guarantee uniform scroll speed across varied content lengths.
  • Pause on Hover: Added pauseOnHover parameter using MouseRegion for native desktop and web interaction.
  • Fading Edge Gradients: Added fadingEdge and fadingEdgeRatio using ShaderMask for soft visual edge fades.
  • Divider Support: Added divider parameter 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(), and restart() methods to MarqueeTransitionState.
  • Test Coverage: Achieved 99.16% test suite coverage with 19 comprehensive widget tests.
0
likes
150
points
796
downloads

Documentation

API reference

Publisher

verified publisherwidgetarian.com

Weekly Downloads

A smooth, configurable marquee text and widget scrolling transition for Flutter.

Homepage
Repository (GitHub)
View/report issues

Topics

#marquee #scroll #animation #transition #widgetarian

Funding

Consider supporting this project:

buymeacoffee.com
ko-fi.com

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on marquee_transition