animated_text 1.0.2

Flutter Android iOS web

Animated_Text for Flutter provides animated translation between the words by reusing the similar alphabets between them.

Platform Pub Package License: MIT Donate Issue Forks Stars

Animated_Text #

Animated_Text helps you to animate between words by re-using the similar alphabets in them.

Installing #

1. Depend on it #

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

dependencies:
  animated_text: ^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/animated_text.dart';
    

Usage #

AnimatedText #

g

      /** Your parent widget here */
      
      child : AnimatedText(
                alignment: Alignment.center,
                speed: Duration(milliseconds: 1000),
                controller: AnimatedTextController.loop,
                displayTime: Duration(milliseconds: 1000),
                wordList: ['animations.', 'are.', 'easier.', 'now.'],
                textStyle: TextStyle(
                    color: Colors.black,
                    fontSize: 55,
                    fontWeight: FontWeight.w700),
                    onAnimate: (index) {
                print("Animating index:" + index.toString());
                },
                 onFinished: () {
                  print("Animtion finished");
                },
              ),
      

Widget Options #

keydescription
controllercontrols the animation state enum AnimatedTextController { play, pause, stop, restart, loop } by-default it is set to AnimatedTextController.play
onAnimatecalled whenever the next animation is going to start
onFinishedcalled when the animation is finished and is not a looping animation
repeatCountit tells how many times the animation should be repeated by default it is set to repeatCount = 5
textStyleUses the DefaultTextStyle of the context if not used.
displayTimetells for how much time the animation should wait and display the text before starting the next animation.

Features coming in next version #

On-going implementation for future:

  • Custom Fade Animation Selection

Help us to keep going. (Be the first one) #

I can code faster but my laptop is lazy. Help me upgrade it. Please consider donating if you think Animated_Text is helpful.

Paypal Me on paypal.me/kawal7415

Donate

33
likes
110
pub points
76%
popularity

Animated_Text for Flutter provides animated translation between the words by reusing the similar alphabets between them.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

kawal741536@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_text