This flutter package implements a simple Spinner animation that cycles through any number of fixed size child widgets. Useful for selecting a random word from a list and displaying it to a user.
It can animate vertically, up or down:
Or horizontally, left or right:
To use this plugin, add spinner as a dependency in your pubspec.yaml file.
See the example project in the repo for a quick demo
Spinner has several useful parameters. You can see them used in the example file
duration: change the duration of the animationanimationSpeed: change how fast the animation moves and what index the animation lands onspinDirection: change the direction of animationcontainerCount: number of containers that should appear on screencontainerSize: for vertical scroll, this is the width of each container produced by the builder function. For horizontal, this is the heightbuilder: a function that takes in an integer and returns a widget with height/width of containerSizecurve: the curve for the animation to follow. Defaults to easeInOutCubiccallback: a function called when the animation completeszoomFactor: optional zoom in by this amount during the animation. It looks something like this, with a zoom factor of 1.5:


