alphabet_animation 0.0.4 alphabet_animation: ^0.0.4 copied to clipboard
This is flutter package to anima to every alphabet in text. It comes with many predefine animations.
Intro: Alphabet Animation is help flutter developer to animate every single alphabet of a string/word.
Installing #
- Depends on it:
Add this to your package's pubspec.yaml file:dependencies: alphabet_animation: ^0.0.4
- Install it:
You can run command in terminalflutter pub add alphabet_animation
- Import it
To import add to your desire fileimport 'package:alphabet_animation/alphabet_animation.dart';
Usage #
Alphabet Animation is statefula package which create animation for text. include in you build method like:
AnimationTypeOne(
text: "Flutter",
animationType: AnimationType.byXAxis,
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold
),
),
OR
AnimationTypeTwo(
text: "Flutter",
animationSync: AnimationSync.flip,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold),
duration: Duration(milliseconds: 500),
repeat: true,
),
About #
- Preview
AnimationTypeOne(
text: "Flutter",
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 35,
fontWeight: FontWeight.bold),
),
AnimationTypeTwo(
text: "Flutter",
animationSync: AnimationSync.flip,
duration: Duration(milliseconds: 500),
repeat: false,
textStyle: TextStyle(
color: Colors.green,
fontSize: 35,
fontWeight: FontWeight.bold),
),
It has properties to explore
In AnimationTypeOne
- final String text
- final TextStyle? textStyle
- final Duration? duration
- final bool repeat
- final Alignment alignment
- final AnimationType animationType
- String text
- Duration duration
- bool repeat
- TextStyle? textStyle
- Axis orientation
- AnimationSync animationSync