alphamikle / anitex

Animated text widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnimatedTextWidget

Getting started

Anitex - is a simple package, which give you access to implicitly animate any text. The most impressive animation is achieve if the old and new lines are the same length, or don't differ too much in length.

Example of usage:

  /// ...
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: AnimatedText(
          title, // This is just a [String]
          style: Theme.of(context).textTheme.headline6.copyWith(color: Colors.white),
          duration: const Duration(seconds: 1),
        ),
      ),
      body: Center(
        child: AnimatedText(
          content,
          reversed: true,
        ),
      ),
    );
  }

About

Animated text widget

License:MIT License


Languages

Language:Dart 97.5%Language:Swift 1.7%Language:Kotlin 0.6%Language:Objective-C 0.2%