Skip to content

Nialixus/typewritertext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Type Writer Text



A simple typewriter text animation wrapper for flutter, supports iOS, Android, web, Windows, macOS, and Linux.

Preview

screen-capture-1

Install

Add this line to your pubspec.yaml.

dependencies:
  typewritertext: ^1.3.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

PropertyPurpose
textUse widget Text().
durationUsed to determine how fast text changes.
alignmentAlign the text within the occupied size.
maintainSizeUsed to maintain occupied size of final text. Default value is true.
playTo set whether animation should play or not. Default value is true.

Full documentation here.

Example