All Projects โ†’ aagarwal1012 โ†’ Animated Text Kit

aagarwal1012 / Animated Text Kit

Licence: mit
๐Ÿ”” A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Animated Text Kit

Vscode Material Theme
Port of the sublime text Material theme for Visual Studio Code in light and dark.
Stars: โœญ 21 (-97.87%)
Mutual labels:  material-design
React Native Js Bottom Sheet
A React Native implementation of Android's bottom sheet
Stars: โœญ 29 (-97.05%)
Mutual labels:  material-design
Postgraduation
University management platform dedicated for post-graduation in computer science field using django rest framework.
Stars: โœญ 35 (-96.44%)
Mutual labels:  material-design
Material Design Lite
Material Design Components in HTML/CSS/JS
Stars: โœญ 31,931 (+3145.02%)
Mutual labels:  material-design
Elephant
Elephant is PHPHub Community Android unofficial client, base on Material Design + MVP+RxJava+Retrofit .
Stars: โœญ 949 (-3.56%)
Mutual labels:  material-design
Electra
A desktop application for test account managment
Stars: โœญ 32 (-96.75%)
Mutual labels:  material-design
Ember Polymer
Use Polymer in your ambitious Ember application! ๐Ÿ’Ž
Stars: โœญ 20 (-97.97%)
Mutual labels:  material-design
Angular4 Admin Front
Admin system front based on Angular. ๅŸบไบŽAngular4็š„ๅŽๅฐ็ฎก็†็ณป็ปŸ๏ผˆno longer maintain๏ผ‰
Stars: โœญ 36 (-96.34%)
Mutual labels:  material-design
Material Dokuwiki
A material design template for DokuWiki
Stars: โœญ 29 (-97.05%)
Mutual labels:  material-design
Materialdesign Login Register Forgot Html
3 Simple forms ( login , register , forgot password ), using beautifull material design components.
Stars: โœญ 34 (-96.54%)
Mutual labels:  material-design
Awesome Flutter
An awesome list that curates the best Flutter libraries, tools, tutorials, articles and more.
Stars: โœญ 38,582 (+3820.93%)
Mutual labels:  material-design
Travelmantics
Firestore & firebase storage MVVM sample
Stars: โœญ 28 (-97.15%)
Mutual labels:  material-design
Wanandroid jetpack
็Žฉๅฎ‰ๅ“็š„Jetpack็‰ˆๆœฌ
Stars: โœญ 33 (-96.65%)
Mutual labels:  material-design
Vuetify
๐Ÿ‰ Material Component Framework for Vue
Stars: โœญ 33,085 (+3262.3%)
Mutual labels:  material-design
Tucao
http://www.tucao.tv/ ๅๆงฝ็ฌฌไธ‰ๆ–นAndroidๅฎขๆˆท็ซฏ
Stars: โœญ 976 (-0.81%)
Mutual labels:  material-design
Vscode Materialdesignicons Intellisense
Provides intellisense, search and hover preview for Material Design Icons
Stars: โœญ 21 (-97.87%)
Mutual labels:  material-design
Vue Auth Boilerplate
๐Ÿ”‘ Vue.js scalable boilerplate with user authentication.
Stars: โœญ 31 (-96.85%)
Mutual labels:  material-design
Gdynet
Unsupervised learning of atomic scale dynamics from molecular dynamics.
Stars: โœญ 37 (-96.24%)
Mutual labels:  material-design
Bluetooth State View
Material design animated Bluetooth state view for Android
Stars: โœญ 36 (-96.34%)
Mutual labels:  material-design
Jtmaterialtransition
An iOS transition for controllers based on material design.
Stars: โœญ 966 (-1.83%)
Mutual labels:  material-design

Animated Text Kit

A flutter package which contains a collection of some cool and awesome text animations. Recommended package for text animations in Codemagic's Ebook, "Flutter libraries we love".


Platform Pub Package Build Status Latest compatibility result for Stable channel Latest compatibility result for Beta channel Latest compatibility result for Dev channel
Codecov Coverage CodeFactor License: MIT Awesome Flutter Donate


Table of contents

Installing

1. Depend on it

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

dependencies:
  animated_text_kit: ^3.1.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

3. Import it

Now in your Dart code, you can use:

import 'package:animated_text_kit/animated_text_kit.dart';

Usage

AnimatedTextKit classes are Stateful Widgets that produce text animations. Include them in your build method like:

TypewriterAnimatedTextKit(
  speed: Duration(milliseconds: 2000),
  totalRepeatCount: 4,
  text: ["do IT!", "do it RIGHT!!", "do it RIGHT NOW!!!"],
  textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
  pause: Duration(milliseconds: 1000),
  displayFullTextOnTap: true,
  stopPauseOnTap: true,
);

They have many configurable properties, including:

  • pause โ€“ the time of the pause between animation texts
  • displayFullTextOnTap โ€“ tapping the animation will rush it to completion
  • isRepeatingAnimation โ€“ controls whether the animation repeats
  • repeatForever โ€“ controls whether the animation repeats forever
  • totalRepeatCount โ€“ number of times the animation should repeat (when repeatForever is false)

There are also custom callbacks:

  • onTap โ€“ This is called when a user taps the animated text
  • onNext(int index, bool isLast) โ€“ This is called before the next text animation, after the previous one's pause
  • onNextBeforePause(int index, bool isLast) โ€“ This is called before the next text animation, before the previous one's pause
  • onFinished - This is called at the end, when the parameter isRepeatingAnimation is set to false

New with Version 3

Version 3 refactored the code so that common animation controls were moved to AnimatedTextKit and all animations, except for TextLiquidFill, extend from AnimatedText. This saved hundreds of lines of duplicate code, increased consistency across animations, and makes it easier to create new animations.

It also makes the animations more flexible because multiple animations may now be easily combined. For example:

    AnimatedTextKit(
      animatedTexts: [
        FadeAnimatedText(
          'Fade First',
          textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
        ),
        ScaleAnimatedText(
          'Then Scale',
          textStyle: TextStyle(fontSize: 70.0, fontFamily: 'Canterbury'),
        ),
      ],
    ),

Using FadeAnimatedTextKit is equivalent to using AnimatedTextKit with FadeAnimatedText. An advantage of AnimatedTextKit is that the animatedTexts may be any subclass of AnimatedText, while using FadeAnimatedTextKit essentially restricts you to using just FadeAnimatedText.

Animations

Many animations are provided, but you can also create your own animations.

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"),
      textAlign: TextAlign.start
    ),
  ],
);

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
    ),
    textAlign: TextAlign.start,
  ),
);

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"
    ),
    textAlign: TextAlign.start,
  ),
);

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"
    ),
    textAlign: TextAlign.start,
  ),
);

Scale

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

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,
    ],
    textAlign: TextAlign.start,
  ),
);

Note: colors list should contains at least two values.

TextLiquidFill

SizedBox(
  width: 250.0,
  child: TextLiquidFill(
        text: 'LIQUIDY',
        waveColor: Colors.blueAccent,
        boxBackgroundColor: Colors.redAccent,
        textStyle: TextStyle(
          fontSize: 80.0,
          fontWeight: FontWeight.bold,
        ),
        boxHeight: 300.0,
  ),
);

To get more information about how the animated text made from scratch by @HemilPanchiwala, visit the Medium blog.

Wavy

WavyAnimatedTextKit(
  textStyle: TextStyle(
        fontSize: 32.0,
        fontWeight: FontWeight.bold
    ),
  text: [
    "Hello World",
    "Look at the waves",
  ],
  isRepeatingAnimation: true,
),

Create your own Animations

You can easily create your own animations by creating new classes that extend AnimatedText, just like most animations in this package. You will need to implement:

  • Class constructor โ€“ Initializes animation parameters.
  • initAnimation โ€“ Initializes Animation instances and binds them to the given AnimationController.
  • animatedBuilder โ€“ Builder method to return a Widget based on Animation values.
  • completeText โ€“ Returns the Widget to display once the animation is complete. (The default implementation returns a styled Text widget.)

Then use AnimatedTextKit to display the custom animated text class like:

    AnimatedTextKit(
      animatedTexts: [
        CustomAnimatedText(
          'Insert Text Here',
          textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
        ),
      ],
    ),

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.

Contributors

Thanks goes to these wonderful people (emoji key):


Muhammed Salih Guler

๐Ÿ›

Anders Cheow

๐Ÿ› ๐Ÿค”

Rohit Ashiwal

๐Ÿ›

AdamSGit

๐Ÿค” ๐Ÿšง

Hemil Panchiwala

๐Ÿšง ๐Ÿค” ๐Ÿ“– ๐Ÿ’ก

YiMing Han

๐Ÿค”

Aayush Malhotra

๐Ÿšง ๐Ÿค” ๐Ÿ›

Anthony Whitford

๐Ÿค” ๐Ÿšง

Jordy Wong

๐Ÿ›

Darshan Rander

๐Ÿค” ๐Ÿ’ป ๐ŸŽจ

Nsiah Akuoko Jeremiah

๐Ÿ’ป

Aniket Ambore

๐Ÿ“–

Abhay V Ashokan

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind are welcome! See Contributing.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].