typewritertext 1.1.0
typewritertext: ^1.1.0 copied to clipboard
A simple typewriter text animation for flutter. Supports iOS, Android, web, Windows, macOS, and Linux.
Type Writer Text #
A simple typewriter text animation for flutter. Supports iOS, Android, web, Windows, macOS, and Linux.
Preview #
Install #
Add this line to your pubspec.yaml.
dependencies:
typewritertext: ^1.1.0
Usage #
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),
);
Documentation #
text
, usesText()
widget.duration
, uses to define how fast text changes.alignment
, Align thetext
within the occupied size.maintainSize
, to maintain occupied size of final text. Default value istrue
.play
, to set whether animation should play or not. Default value istrue
.
Full documentation here.