Skip to content

inc16sec/text_scroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text_scroll

TextScroll Flutter widget adds text auto-scrolling functionality (marquee text).

demo

Features

  • endless and bouncing modes
  • delay and pause between rounds
  • max number of rounds
  • custom velocity
  • style and textAlign support

Getting started

To use this package, add text_scroll as a dependency in your pubspec.yaml file.

Usage

Minimal example:

    TextScroll('This is the sample text for Flutter TextScroll widget. ')

Custom settings:

    TextScroll(
        'This is the sample text for Flutter TextScroll widget. ',
        mode: TextScrollMode.bouncing,
        velocity: Velocity(pixelsPerSecond: Offset(150, 0)),
        delayBefore: Duration(milliseconds: 500),
        numberOfReps: 5,
        pauseBetween: Duration(milliseconds: 50),
        style: TextStyle(color: Colors.green),
        textAlign: TextAlign.right,
        selectable: true,
    )

See also

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 91.1%
  • Swift 7.8%
  • Other 1.1%