flutter_bouncing_text library

Classes

AnimatedBouncingText
A Romantic Bouncing Text Ideally it is a RichText to control the paragraph easier. The helper method createAnimatedBouncingSpans is used to create its child spans. mode : determine how does the animation act. text : each character will be convert to AnimatedBouncingWidget. textStyle : see Text.style. characterDuration : duration to animate a character, it will be used as AnimatedBouncingWidget.duration. characterDelay : duration to delay before animating a character. onEnd : see AnimatedBouncingWidget.onEnd. textAlign : see RichText.textAlign.
AnimatedBouncingWidget
This is an implicitly animated widget. Its child will fall down then bounce in duration. If isRepeat is true, the animation will be repeat after completed, else onEnd will be called.

Enums

BouncingTextModes
These modes control how the AnimatedBouncingText animates.

Functions

createAnimatedBouncingSpans({required BouncingTextModes mode, required String text, required TextStyle textStyle, required Duration characterDuration, required Duration characterDelay, Function? onEnd}) List<InlineSpan>
Basically, AnimatedBouncingText is a RichText. So this a helper method is used to create a list of WidgetSpan. Each item is a AnimatedBouncingWidget. mode : determine how does the animation act. text : each character will be convert to AnimatedBouncingWidget. textStyle : see Text.style. characterDuration : duration to animate a character, it will be used as AnimatedBouncingWidget.duration. characterDelay : duration to delay before animating a character. onEnd : see AnimatedBouncingWidget.onEnd.