Hero 效果,用于文本小部件的常用单词(类似于 keynote 中的魔术移动)
特点
用法
用法很简单,类似于 Hero,但显然子部件应该是 Text。不要忘记增加 transitionDuration(请查看示例以获取更多信息)。
HeroText(
tag: 'tag',
child: Text(
'To be, or not to be, that is the question',
style: Theme.of(context).textTheme.headline5,
),
)
