Skip to content

A Flutter marquee for looping through wide widgets

License

Notifications You must be signed in to change notification settings

Emanate-official/widget_marquee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A marquee widget that loops content seamlessly in a continous animation. The marquee will only animate if the content contained in the widget extends pass the horizontal edge of the screen.

Note: Current limitation is that the elements being displayed are not interactable during the animation.

Usage

Container(
    margin: const EdgeInsets.symmetric(horizontal: 20),
    child: Marquee(
        child: Text('Very long text that bleeds out of the rendering space'),
        loopDuration: const Duration(milliseconds: 5000),
    ),
),

Options

delayDuration: One time delay to wait before starting the rotation animation
gap: Spacing to add between widget end and start
loopDuration: Time for one full rotation of the child
onLoopFinish: Async function to run upon finishing each loop
pixelsPerSecond: Alternate to loop duration, can be used for consistant speed regardless of size

About

A Flutter marquee for looping through wide widgets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%