【发布时间】:2022-01-13 19:13:28
【问题描述】:
正如您在我的应用程序中看到的那样,第二个 Text() 小部件太长并溢出屏幕。
我想要实现的是在Text() 上制作一个动画,它会自动水平连续滚动,以便用户阅读。
请注意,动画应该只在溢出屏幕的小部件上实现(在我的例子中是在第二个文本小部件上)。
这是我的代码:
InkWell(
onTap: () {/* do something */},
child: Container(
width: 500.0,
child: Row(
children: [
Icon(icon),
const SizedBox(width: 20.0),
Text(title, style: const TextStyle(fontSize: 25.0)),
],
),
)
【问题讨论】:
标签: flutter dart flutter-layout