typewrite_text 0.0.2 copy "typewrite_text: ^0.0.2" to clipboard
typewrite_text: ^0.0.2 copied to clipboard

A typewriter text animation wrapper with customizations. Supports iOS, Android, web, Windows, macOS, and Linux.

typewrite_text #

pub package

A typewriter text animation wrapper with customizations. Supports iOS, Android, web, Windows, macOS, and Linux.

Motivation #

While creating a website for myself, I decided to embellish it with a small yet striking text animation to give it extra allure. This little detail not only added beauty to my site but also brought dynamism, making it stand out among others. While there are some packages that offer almost what I need, they weren't quite sufficient for my vision.

Features #

  • Allows to set up different delays for forward and reverse animation.
  • Allows to set up different delays before animation starts and after animation ends.
  • Can be used just in "forward" mode.
  • Can be used with or without animated text cursor.
  • Allows to set up text theme.

Usage #

Basic animation. Just add text line(s) and specify text theme:

TypewriteText(
  linesOfText: ['Hello World', 'Hello Flutter', 'Hello Dart'],
  textStyle: TextStyle(color: Colors.red),
),

One side animation without showing animated text cursor:

TypewriteText(
  linesOfText: ['Hello World', 'Hello Flutter', 'Hello Dart'],
  textStyle: TextStyle(color: Colors.blue, fontSize: 20, fontWeight: FontWeight.bold),
  reverseAnimationDuration: Duration.zero,
  beforeAnimationDuration: Duration.zero,
  needCursor: false,
)

Documentation #

Property Purpose
linesOfText List of strings to be shown.
textStyle TextStyle for this strings.
forwardAnimationDuration The rate of a symbol appears.
reverseAnimationDuration The rate of a symbol vanishes.
beforeAnimationDuration The interval before the symbols' initial appearance.
afterAnimationDuration The pause following the display of all symbols.
needCursor If you need an animated cursor, set true otherwise - false.
cursorColor Color of the animated text cursor.
34
likes
160
points
185
downloads

Publisher

verified publisherhorlova.site

Weekly Downloads

A typewriter text animation wrapper with customizations. Supports iOS, Android, web, Windows, macOS, and Linux.

Homepage
Repository (GitHub)
View/report issues

Topics

#text #animation

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on typewrite_text