0 purchases
typewriter
typewriter #
A simple Flutter typewriter animation wrapper
Installing #
See Installing Tab.
Usage #
This package exposes a single Typewriter Widget:
Typewriter("hello world!",
controller: _animationController,
);
copied to clipboard
You can create the AnimationController
when you create your widget's state:
@override
void initState() {
_animationController = AnimationController(
vsync: this,
duration: Duration(
seconds: 2,
),
);
super.initState();
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
copied to clipboard
From there, you can trigger the Typewriter's animation using the AnimationController.
FlatButton(
onPressed: () {
_controller.forward();
},
child: Text("Tap to play animation"),
)
copied to clipboard
Example #
See Example Tab for a full example.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.