Skip to content
pubscout

text_scroll

0.3.0, released 5 days ago by yurii-khi.com

A Flutter widget that auto‑scrolls overflowing text like a marquee.

WASM-ready
$ flutter pub add text_scroll
Source repository

What it does

TextScroll displays a single line of text and scrolls it when the content is wider than its container. It supports endless looping or bouncing back and forth, with configurable speed, delays, repetitions, and fade edges.

AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a simple marquee effect for a single line of text
  • You want built‑in support for bouncing or endless scrolling without custom animation code

Skip it when

  • You require multi‑line scrolling or complex rich‑text layouts
  • You need precise pixel‑perfect control over animation curves

Strengths

  • Easy to drop‑in as a regular widget
  • Configurable modes, speed, delays, and fade edges
  • Handles parameter changes and disposes timers correctly

Weaknesses

  • Only works for single‑line text
  • No support for custom animation curves or multi‑line marquee

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:text_scroll/text_scroll.dart';

TextScroll(
  'Scrolling marquee text example',
  mode: TextScrollMode.bouncing,
  velocity: Velocity(pixelsPerSecond: Offset(150, 0)),
  selectable: true,
);

Alternatives

Packages that do the same job and could replace text_scroll.

  • auto_size_text

    Automatically scales text to fit its bounds, avoiding the need for scrolling when possible