ui library
SpriteStudio animations inside Flutter's buttons: a view that plays the state of the button it sits in, and a region that lets the button take pointers only on the artwork.
A separate library, so an app that only plays animations imports none of it and pays nothing for it.
Classes
- SpriteStudioHitRegion
- Lets child take a pointer only where player draws one of parts — or any part, when parts is null — so an irregular button does not answer taps and hovers around its artwork.
- SpriteStudioStateView
- A SpriteStudioView that shows the state of the button it sits in.
- SsUiClip
- What a state plays instead of the label named after it: the section of animation that starts at label.
- SsUiStateDriver
- Plays the section a SsUiState calls for on a player the host owns.
Enums
- SsUiState
- A state a SpriteStudio button shows. By default each plays from the label of the same name in one animation, up to the frame before the next label.