Viewing version 1.1.0. Open the latest package page.

animated_text_kit

1.1.0

A flutter package project which contains a collection of cool and beautiful text animations.

Download archive

Readme

Animated Text Kit

Table of contents

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  animated_text_kit: ^1.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

3. Import it

Now in your Dart code, you can use:

import 'package:animated_text_kit/animated_text_kit.dart';

Usage

You can override the duration of each animation by setting duration in each AnimatedTextKit class. For example:

FadeAnimatedTextKit(
  duration: Duration(milliseconds: 5000),
  text: ["do IT!", "do it RIGHT!!", "do it RIGHT NOW!!!"],
  textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
);

Rotate

Row(
  mainAxisSize: MainAxisSize.min,
  children: <Widget>[
    SizedBox(width: 20.0, height: 100.0),
    Text(
      "Be",
      style: TextStyle(fontSize: 43.0),
    ),
    SizedBox(width: 20.0, height: 100.0),
    RotateAnimatedTextKit(
      onTap: () {
        print("Tap Event");
      },
      text: ["AWESOME", "OPTIMISTIC", "DIFFERENT"],
      textStyle: TextStyle(fontSize: 40.0, fontFamily: "Horizon"),
    ),
  ],
);

Note: You can override transition height by setting the value of parameter transitionHeight for RotateAnimatedTextKit class.

Fade

SizedBox(
  width: 250.0,
  child: FadeAnimatedTextKit(
    onTap: () {
        print("Tap Event");
      },
    text: [
      "do IT!",
      "do it RIGHT!!",
      "do it RIGHT NOW!!!"
    ],
    textStyle: TextStyle(
        fontSize: 32.0, 
        fontWeight: FontWeight.bold
    ),
  ),
);

Typer

SizedBox(
  width: 250.0,
  child: TyperAnimatedTextKit(
    onTap: () {
        print("Tap Event");
      },
    text: [
      "It is not enough to do your best,",
      "you must know what to do,",
      "and then do your best",
      "- W.Edwards Deming",
    ],
    textStyle: TextStyle(
        fontSize: 30.0,
        fontFamily: "Bobbers"
    ),
  ),
);

Typewriter

SizedBox(
  width: 250.0,
  child: TypewriterAnimatedTextKit(
    onTap: () {
        print("Tap Event");
      },
    text: [
      "Discipline is the best tool",
      "Design first, then code",
      "Do not patch bugs out, rewrite them",
      "Do not test bugs out, design them out",
    ],
    textStyle: TextStyle(
        fontSize: 30.0,
        fontFamily: "Agne"
    ),
  ),
);

Scale

SizedBox(
  width: 250.0,
  child: ScaleAnimatedTextKit(
    onTap: () {
        print("Tap Event");
      },
    text: [
      "Think",
      "Build",
      "Ship"
      ],
    textStyle: TextStyle(
        fontSize: 70.0,
        fontFamily: "Canterbury"
    ),
  ),
);

Colorize

SizedBox(
  width: 250.0,
  child: ColorizeAnimatedTextKit(
    onTap: () {
        print("Tap Event");
      },
    text: [
      "Larry Page",
      "Bill Gates",
      "Steve Jobs",
    ],
    textStyle: TextStyle(
        fontSize: 50.0, 
        fontFamily: "Horizon"
    ),
    colors: [
      Colors.purple,
      Colors.blue,
      Colors.yellow,
      Colors.red,
    ],
  ),
);

Note: colors list should contains at least two values, also ColorizeAnimationTextKit can be used for flutter >=0.5.7 which is available in dev channel.

Bugs or Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.

See Contributing.md.

License

Animated-Text-Kit is licensed under MIT license. View license.

Changelog

1.1.0

Feature Enhancement

  • Added onTap callback for all AnimatedText widget.
  • Updated Readme.

1.0.3

  • General update.

1.0.2

  • Updated Readme.

1.0.1

  • Initial Release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'animated_text_kit:1.1.0'
pubspec.yaml
name: animated_text_kit
description: A flutter package project which contains a collection of cool and beautiful text animations.
version: 1.1.0
author: Ayush Agarwal <aagarwal9782@gmail.com>
homepage: https://github.com/aagarwal1012/Animated-Text-Kit/

dependencies:
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

environment:
  sdk: ">=2.0.0-dev.28.0 <3.0.0"
  flutter: ">=0.3.0 <2.0.0"

Version history

VersionPublishedArchiveSHA-256
1.0.1Cached · Upstream SHA-256 matchedDownload3b7cbc0a…e8aea3
1.0.2Cached · Upstream SHA-256 matchedDownload340776dc…a12870
1.0.3Cached · Upstream SHA-256 matchedDownload076e8fc4…4e09a5
1.1.0Cached · Upstream SHA-256 matchedDownload5dbe6a03…b91288
1.1.1Cached · Upstream SHA-256 matchedDownload39301f90…1e57c7
1.2.0Cached · Upstream SHA-256 matchedDownloadedd23c6f…59d48b
1.3.0Cached · Upstream SHA-256 matchedDownload064b7f1a…e35a8a
1.3.1Cached · Upstream SHA-256 matchedDownloadd566edbd…bde1c2
2.0.0Cached · Upstream SHA-256 matchedDownload7d401646…4b7889
2.0.1Cached · Upstream SHA-256 matchedDownload27a9f2b7…cde772
2.1.0Cached · Upstream SHA-256 matchedDownloada3ec787b…6e8008
2.2.0Cached · Upstream SHA-256 matchedDownloadb8772b1a…75ee6a
2.3.0Cached · Upstream SHA-256 matchedDownload4688bcd5…be8efa
2.4.0Cached · Upstream SHA-256 matchedDownloada8051390…875d4e
2.4.1Cached · Upstream SHA-256 matchedDownload1774e554…d34def
2.5.0Cached · Upstream SHA-256 matchedDownloadf9437101…2cc5cf
2.5.1Cached · Upstream SHA-256 matchedDownload10c0bb77…0195e8
2.5.2Cached · Upstream SHA-256 matchedDownload49d9508f…535234
2.5.3Cached · Upstream SHA-256 matchedDownload0e9ab1f7…c796bb
2.5.4Cached · Upstream SHA-256 matchedDownload41c615f9…741d2d
3.0.0Cached · Upstream SHA-256 matchedDownloadc34a7454…272ece
3.0.1Cached · Upstream SHA-256 matchedDownload91232e2c…86e0a1
3.0.2Cached · Upstream SHA-256 matchedDownload84343cc1…c98629
3.1.0Cached · Upstream SHA-256 matchedDownload8e2d38cf…afdfcc
3.1.1Cached · Upstream SHA-256 matchedDownload4bbb0b0e…5ef242
3.1.2Cached · Upstream SHA-256 matchedDownload617b93ac…3fe8aa
4.0.0Cached · Upstream SHA-256 matchedDownloadecc5f312…071bb7
4.1.0Cached · Upstream SHA-256 matchedDownload17c098e6…b2d353
4.1.1Cached · Upstream SHA-256 matchedDownload3eacf786…dad2bd
4.2.0Cached · Upstream SHA-256 matchedDownloadea637054…7809b8
4.2.1Cached · Upstream SHA-256 matchedDownload5e6bf696…2ccdcc
4.2.2Cached · Upstream SHA-256 matchedDownload37392a53…22fa92
4.2.3Cached · Upstream SHA-256 matchedDownloadadba517a…93a93d
4.3.0Cached · Upstream SHA-256 matchedDownload1d414868…5c81f2

Dependencies

flutter { "sdk": "flutter" }