A simple typewriter text animation wrapper for flutter, supports iOS, Android, web, Windows, macOS, and Linux.
Add this line to your pubspec.yaml.
dependencies:
typewritertext: ^1.3.0
First, import the typewriter package.
import 'package:typewritertext/typewritertext.dart';
And then put the widget like this.
const TypeWriterText(
text: Text('text'),
duration: Duration(milliseconds: 50),
);
Property | Purpose |
text | Use widget Text(). |
duration | Used to determine how fast text changes. |
alignment | Align the text within the occupied size. |
maintainSize | Used to maintain occupied size of final text. Default value is true. |
play | To set whether animation should play or not. Default value is true. |
Full documentation here.