typethis 0.2.0 typethis: ^0.2.0 copied to clipboard
A flutter package that aims to simplify versatile typing animation with reset, freeze and unfreeze functionality.
TypeThis #
A flutter package that aims to simplify versatile typing animation with reset, freeze and unfreeze functionality.
Create a TypeThis widget #
final typeThisWidget = TypeThis(
// The text which will be animated.
string: 'Hi there! How are you doing?',
// Speed in milliseconds at which the typing animation will be executed.
speed: 100,
// Text style for the string.
style: const TextStyle(fontSize: 20),
);
Reset the animation #
// Call the `reset()` method on controller to reset the typing animation.
typeThisWidget.controller.reset();
Freeze (pause) the animation #
// Call the `freeze()` method on controller to freeze/pause the typing animation.
typeThisWidget.controller.freeze();
Unfreeze (resume) the animation #
// Call the `unfreeze()` method on controller to unfreeze/resume the typing animation.
typeThisWidget.controller.unfreeze();
Demo #
License #
The project is released under the MIT License. Learn more about it, here.
Developed and Maintained with 💜 by thecodexhub