Viewing version 1.0.2. Open the latest package page.
animated_text_kit
1.0.2A flutter package project which contains a collection of cool and beautiful text animations.
Readme
Animated Text Kit
platform Build Status pub package License: MIT
Animation Text Kit is a flutter package which contains a collection of cool and beautiful text animations for your flutter apps by using some customized animations.
Installing
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
animated_text_kit: ^1.0.2
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(
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(
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(
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(
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(
text: [
"Think",
"Build",
"Ship"
],
textStyle: TextStyle(
fontSize: 70.0,
fontFamily: "Canterbury"
),
),
);
Colorize
SizedBox(
width: 250.0,
child: ColorizeAnimatedTextKit(
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.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.0.2'pubspec.yaml
name: animated_text_kit
description: A flutter package project which contains a collection of cool and beautiful text animations.
version: 1.0.2
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
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.1 | Cached · Upstream SHA-256 matched | Download | 3b7cbc0a…e8aea3 |
| 1.0.2 | Cached · Upstream SHA-256 matched | Download | 340776dc…a12870 |
| 1.0.3 | Cached · Upstream SHA-256 matched | Download | 076e8fc4…4e09a5 |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | 5dbe6a03…b91288 |
| 1.1.1 | Cached · Upstream SHA-256 matched | Download | 39301f90…1e57c7 |
| 1.2.0 | Cached · Upstream SHA-256 matched | Download | edd23c6f…59d48b |
| 1.3.0 | Cached · Upstream SHA-256 matched | Download | 064b7f1a…e35a8a |
| 1.3.1 | Cached · Upstream SHA-256 matched | Download | d566edbd…bde1c2 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | 7d401646…4b7889 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | 27a9f2b7…cde772 |
| 2.1.0 | Cached · Upstream SHA-256 matched | Download | a3ec787b…6e8008 |
| 2.2.0 | Cached · Upstream SHA-256 matched | Download | b8772b1a…75ee6a |
| 2.3.0 | Cached · Upstream SHA-256 matched | Download | 4688bcd5…be8efa |
| 2.4.0 | Cached · Upstream SHA-256 matched | Download | a8051390…875d4e |
| 2.4.1 | Cached · Upstream SHA-256 matched | Download | 1774e554…d34def |
| 2.5.0 | Cached · Upstream SHA-256 matched | Download | f9437101…2cc5cf |
| 2.5.1 | Cached · Upstream SHA-256 matched | Download | 10c0bb77…0195e8 |
| 2.5.2 | Cached · Upstream SHA-256 matched | Download | 49d9508f…535234 |
| 2.5.3 | Cached · Upstream SHA-256 matched | Download | 0e9ab1f7…c796bb |
| 2.5.4 | Cached · Upstream SHA-256 matched | Download | 41c615f9…741d2d |
| 3.0.0 | Cached · Upstream SHA-256 matched | Download | c34a7454…272ece |
| 3.0.1 | Cached · Upstream SHA-256 matched | Download | 91232e2c…86e0a1 |
| 3.0.2 | Cached · Upstream SHA-256 matched | Download | 84343cc1…c98629 |
| 3.1.0 | Cached · Upstream SHA-256 matched | Download | 8e2d38cf…afdfcc |
| 3.1.1 | Cached · Upstream SHA-256 matched | Download | 4bbb0b0e…5ef242 |
| 3.1.2 | Cached · Upstream SHA-256 matched | Download | 617b93ac…3fe8aa |
| 4.0.0 | Cached · Upstream SHA-256 matched | Download | ecc5f312…071bb7 |
| 4.1.0 | Cached · Upstream SHA-256 matched | Download | 17c098e6…b2d353 |
| 4.1.1 | Cached · Upstream SHA-256 matched | Download | 3eacf786…dad2bd |
| 4.2.0 | Cached · Upstream SHA-256 matched | Download | ea637054…7809b8 |
| 4.2.1 | Cached · Upstream SHA-256 matched | Download | 5e6bf696…2ccdcc |
| 4.2.2 | Cached · Upstream SHA-256 matched | Download | 37392a53…22fa92 |
| 4.2.3 | Cached · Upstream SHA-256 matched | Download | adba517a…93a93d |
| 4.3.0 | Cached · Upstream SHA-256 matched | Download | 1d414868…5c81f2 |
Dependencies
flutter {
"sdk": "flutter"
}