我必须为一个按钮设置2个不同的方向,这个方向必须改变时间的函数。因此,当您第一次打开路由时,botton将引导到一条路由和几秒钟后到达另一条路由。
发布于 2022-05-22 20:21:34
您可以看到下面的示例,以了解如何做到这一点。
import 'dart:async';
/// After 10 second
final timer = Timer.periodic(const Duration(seconds: 10), (timer) {
/// change the sound to play
});

https://stackoverflow.com/questions/72340106
复制相似问题