Flutter animated lettering texts
- 🔧 NotoSans_KR (Developing)
// not yet updated
dependencies:
lettering_text: ^<latest_version>- Set animation
class _FooClassState extends State<FooClass> with SingleTickerProviderStateMixin {
late AnimationController _animationController;
late Animation<double> _animation;
@override
void initState() {
_animationController = AnimationController(vsync: this, duration: const Duration(milliseconds: 700));
_animation = Tween<double>(begin: 0, end: 1).animate(CurvedAnimation(parent: _animationController, curve: Curves.easeInOutCirc));
super.initState();
}
void _showIcon() {
_animationController.forward();
}
...- add widget
KRTextAnimated(
color: Colors.black,
progress: _animation,
size: 30,
fontType: FontType.notoSans,
text: "나",
),- trigger widget animation
_showAnimation()
/// If you want to do the reverse
/// do this
/// _animationController.reverse();This package can be used for commercial purposes. We're going to add a new font every update. If you need any fonts, send to eomky2005@gmail.com via email or Git Issue.