preface
Flutter is Google’s mobile UI framework for quickly building high-quality native user interfaces on iOS and Android.
Nicholas Gaulbag, a famous IT expert, once said: The wheel is the ladder of IT progress! Popular frames are the same, with wheels pick one in a million! Flutter, a cross-platform development framework that has been on the rise for the last two years, has a smaller third-party ecosystem than other mature frameworks, but it has a lot of wheels. This series of articles select the wheels commonly used in daily APP development to share, so as to improve the efficiency of brick moving, and hope that the ecology of Flutter will become more and more perfect, with more and more wheels.
This series of articles has been prepared with over 50 wheel recommendations, working for reasons that try to produce an article every 1-2 days.
This series of articles is for those who already have some of the basics of FLUTTER
The body of the
The wheel
- Wheel name: animated_text_kit
- Wheel Overview: Flutter text dynamic components.
- Wheels by [email protected]
- ★★★★ ★
- ★★★
- Effect preview:
The installation
dependencies:
animated_text_kit: ^ 1.3.1
Copy the code
import 'package:animated_text_kit/animated_text_kit.dart';
Copy the code
The basic use
Fade effect
FadeAnimatedTextKit(
duration: Duration(milliseconds: 5000),// Animation duration
isRepeatingAnimation: true,
text: ["Text"."Let's move!"."common!!!"],
textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
),
Copy the code
Rotate the effect
RotateAnimatedTextKit(
onTap: () {
print("Tap Event");// Component click event
},
text: ["Little bun"."Che Tu zai"."The last stubbornness"],
textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
textAlign: TextAlign.center,
alignment: AlignmentDirectional.topStart,
)
Copy the code
Effect of Typer
TyperAnimatedTextKit(
text: [
"Learning makes me happy."."The last stubbornness of Chettuzai.",
],
textStyle: TextStyle(
fontSize: 30.0,
fontFamily: "Bobbers"
),
textAlign: TextAlign.start,
alignment: AlignmentDirectional.topStart // or Alignment.topLeft
)
Copy the code
Effect of Typewriter
TypewriterAnimatedTextKit(
text: [
"The last stubbornness of Chettuzai.",
],
textStyle: TextStyle(
fontSize: 30.0,
fontFamily: "Agne"
),
textAlign: TextAlign.start,
alignment: AlignmentDirectional.topStart // or Alignment.topLeft
)
Copy the code
Scale effect
ScaleAnimatedTextKit(
text: [
"Flutter"."Wheel"."Recommended"
],
textStyle: TextStyle(
fontSize: 70.0,
fontFamily: "Canterbury"
),
textAlign: TextAlign.start,
alignment: AlignmentDirectional.topStart // or Alignment.topLeft
)
Copy the code
Colorize effect
ColorizeAnimatedTextKit(
text: [
"Little bun"."flutter",
],
textStyle: TextStyle(
fontSize: 32.0,
fontFamily: "Horizon"
),
colors: [
Colors.purple,
Colors.blue,
Colors.yellow,
Colors.red,
],
textAlign: TextAlign.start,
alignment: AlignmentDirectional.topStart // or Alignment.topLeft
)
Copy the code
At the end
- Address of wheel warehouse: pub.flutter-io.cn/packages/an…
- Series demo source: github.com/826327700/f…