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.
import 'package:alphabet_animation/alphabet_animation.dart';
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Material App',
home: Scaffold(
backgroundColor: Colors.amber,
body: Center(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: const [
AnimationTypeOne(
text: "Flutter",
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 35,
fontWeight: FontWeight.bold),
),
SizedBox(
height: 20,
),
AnimationTypeOne(
text: "Flutter",
animationType: AnimationType.byXAxis,
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold),
),
SizedBox(
height: 20,
),
AnimationTypeOne(
text: "Flutter",
animationType: AnimationType.byYAxis,
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold),
),
SizedBox(
height: 20,
),
AnimationTypeOne(
text: "Flutter",
animationType: AnimationType.pendulum,
duration: Duration(seconds: 200),
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold),
),
SizedBox(
height: 20,
),
AnimationTypeOne(
text: "Flutter",
animationType: AnimationType.scaleUp,
repeat: true,
textStyle: TextStyle(
color: Colors.green,
fontSize: 5,
letterSpacing: 15,
fontWeight: FontWeight.bold),
),
SizedBox(
height: 20,
),
AnimationTypeTwo(
text: "Flutter",
animationSync: AnimationSync.flip,
duration: Duration(milliseconds: 500),
repeat: false,
textStyle: TextStyle(
color: Colors.green,
fontSize: 35,
fontWeight: FontWeight.bold),
),
SizedBox(
height: 20,
),
AnimationTypeTwo(
text: "Flutter",
animationSync: AnimationSync.flip,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold),
duration: Duration(milliseconds: 500),
repeat: true,
),
SizedBox(
height: 20,
),
AnimationTypeTwo(
text: "Flutter",
animationSync: AnimationSync.flow,
textStyle: TextStyle(
color: Colors.green,
fontSize: 18,
fontWeight: FontWeight.bold),
duration: Duration(milliseconds: 500),
),
SizedBox(
height: 20,
),
],
),
),
)),
);
}
}