8000 GitHub - GiYeongUM/lettering_text: Flutter lettering text animation · GitHub
[go: up one dir, main page]

Skip to content

About

Flutter lettering text animation

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

lettering_text

Flutter animated lettering texts

Flutter

font lists

  • 🔧 NotoSans_KR (Developing)

// not yet updated

dependencies:
  lettering_text: ^<latest_version>

📷 GIF

💪 Use

  1. 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();
  }
  
  ...
  1. add widget
KRTextAnimated(
  color: Colors.black,
  progress: _animation,
  size: 30,
  fontType: FontType.notoSans,
  text: "나",
),
  1. trigger widget animation
_showAnimation()

/// If you want to do the reverse
/// do this
/// _animationController.reverse();

📋Notice

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.

About

Flutter lettering text animation

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0