Search packages, repositories and app categories

Package detailsv2.3.0

marquee

A Flutter widget that scrolls text infinitely. Provides many customizations including custom scroll directions, durations, curves as well as pauses after every round.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
100K
Likes
1.1K
Pub points
150

Install package

flutter pub add marquee

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The marquee package provides a Flutter widget that enables infinite scrolling text with extensive customization options. It supports various scroll directions, adjustable durations, animation curves, and configurable pauses after each cycle. Ideal for displaying long text in limited space, such as headlines or notifications, it enhances user experience through smooth, continuous animations across all major platforms. The widget is lightweight and easy to integrate, making it suitable for both simple and complex use cases requiring dynamic text display.

Use cases

  • Displaying long headlines in limited space
  • Creating animated notifications
  • Showing ticker-style news feeds
  • Enhancing UI with dynamic text effects
  • Implementing scrolling banners

Key features

  • Infinite text scrolling
  • Customizable scroll direction
  • Adjustable animation duration and curve
  • Pause after each scroll cycle
  • Support for multiple platforms
  • Easy integration with existing widgets

Suitable for

  • Developers needing animated text displays
  • Designers creating engaging UI elements
  • Apps with real-time data feeds
  • Interactive kiosks or dashboards
  • Projects requiring responsive text animations

Considerations

  • May impact performance with very long texts
  • Requires careful tuning of scroll speed and pause
  • Not ideal for static content
  • Accessibility considerations for screen readers
  • Limited control over individual character movement

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

⏩ A Flutter widget that scrolls text infinitely. Provides many customizations including custom scroll directions, durations, curves as well as pauses after every round.

Appreciate the widget? Show some ❤️ and star the repo to support the project.

Usage

This is a minimalistic example:

Marquee(
  text: 'There once was a boy who told this story about a boy: "',
)

And here's a piece of code that makes full use of the marquee's customizability:

Marquee(
  text: 'Some sample text that takes some space.',
  style: TextStyle(fontWeight: FontWeight.bold),
  scrollAxis: Axis.horizontal,
  crossAxisAlignment: CrossAxisAlignment.start,
  blankSpace: 20.0,
  velocity: 100.0,
  pauseAfterRound: Duration(seconds: 1),
  startPadding: 10.0,
  accelerationDuration: Duration(seconds: 1),
  accelerationCurve: Curves.linear,
  decelerationDuration: Duration(milliseconds: 500),
  decelerationCurve: Curves.easeOut,
)

For more information about the properties, have a look at the API reference.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package