FLUTTER ECOSYSTEM

alphamikle/anitex

动画文本小部件

anitex 项目封面
Stars
20
Forks
0
最近推送(UTC)
2026年5月5日
项目状态
未归档
Mike Alfa GitHub avatar
GITHUB User

Mike Alfa ↗

A passionate developer who was lucky enough to have a hobby that became a job

语言DartSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 3 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^2.0.1

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

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,
        ),
      ),
    );
  }
https://github.com/alphamikle/anitex/raw/master/demo.gif