Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.19 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.19 KB

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!