text_typewriter 1.0.11
text_typewriter: ^1.0.11 copied to clipboard
A Flutter module to enable writing in typewriter format with features like looping, duration setting and text styling.
text_typewriter #
This widget allows to animate the typing of text in typewriter animation. It has many options such as erasing the text in typewriter format after typing it, looping, and text styling.
Getting Started #
to get started 1-dart pub add text_typewriter 2-import 'package:text_typewriter/text_typewriter.dart'; 3- use "Typewriter" command for accessing it by passing a list if you want to iterate through the Texts inside the list ,or single String in list if you want one text to be typed again and again.
Getting Started #
required : a list of text : Typewriter(['put the items','here']) other fields: bool loop true/false, - to know if the text typewriting will continue infinitely or only once bool erase true/false, - to know if text will be cleared in typewriter erase manner or all clear at once textstyle:Textstyle() - to set text styles (same parameters as Text widget).
Examples #
Example 1 #
Typewriter(
['hi', 'hello'],
textstyle: TextStyle(color: Colors.amber, fontSize: 20),
),
Example 2 #
Typewriter(
['I am a coder', 'I am a developer', 'i am flutter enthusiast' ],
textstyle: TextStyle(color: Colors.amber, fontSize: 20),
),
Example 3 #
Typewriter(
['hi', 'hello'],
textstyle: TextStyle(color: Colors.amber, fontSize: 20),
loop: true,
erase: true,
tailingtext: '_',
),