Skip to content

jimmyff/clackety

Repository files navigation

clackety

A lightweight Flutter package (zero external dependencies) to animate the typing of text (like a typewriter / typist). You can provide new typing targets via the controller and clackety will amend the text already written.

Clackety demo animation


Features

  • Corrects text in realtime when new typing target is provided
  • Easy to use with or without Controller
  • Zero dependencies, lightweight & optimised
  • Tap to fast-forward
  • onComplete callback support

Getting started

Install the package:

flutter pub add flutter_local_notifications

Usage: Basic

As a replacement Text() widget

Clackety.text("Clackety Example")

Usage: Advanced

With a Clackety Controller.

// Create a the ClacketyController
_clacketyController = ClacketyController(value: '');

// Add the Clackety widget to your ui widget tree
Clackety(
    controller: _clacketyController,
    builder: (context, text) => Text(text)),

// Type new text whenever required!
_clacketyController.type('... Happy clacking!');

Happy clacking!

About

Flutter package to animate the typing of text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published