sflashy_ui 0.0.6 sflashy_ui: ^0.0.6 copied to clipboard
This is a suite of Flutter Widgets for specific sflashy effects
Examples #
TextRoller #
Example:
TextRoller(
strings: [
'First',
'Second',
'Third',
'Fourth',
],
waitDuration: Duration(second: 2), // (optional) same as `wait: 2`
transitionDuration: Duration(milliseconds: 1250) // (optional)
);
Strings merge transition in an infinite loop animation #
The widget shows strings in the order it receives them.
Params
-
style
: TextStyle of the Text rendered. -
waitDuration
: indicates how long each string remains static before being replaced with the next.
wait
can be used instead to specify seconds. -
transitionDuration
: indicates how long the transition between the two strings lasts, during which the text gradually merges.
transition
can be used instead to specify seconds.