android - 如何使用flutter GETx随着时间的变化更新timeData?
问题描述
我希望我的应用程序的时间随着时间的推移而改变。我想用GETx管理状态。
解决方案
这将通过
Timer.periodic(Duration(second:30), (timer) { updateTheState })
推荐阅读
- javascript - 如何在javascript中的一个数组中合并另一个数组对象中的数组
- angularjs - 错误:HighlightDirective 不能用作入口组件。Ng升级
- javascript - Ajax 点击功能在 Wordpress 功能中不起作用
- php - 如何在 PHP 中使用 PDO 将数据插入到带有子查询的数据库中?
- docker - ASP.NET Core 5 强制 HTTPS,除了 Healthcheck
- flutter - 参数类型 'Container Function(BuildContext, int)' 不能分配给参数类型 'Widget Function(BuildContext, int, int)'
- python - 如何在 python 中选择数字的数量?
- python - 没有乘法运算符的乘法数字的更好解决方案
- oracle - PL/SQL 过程编译时出现小错误需要帮助
- android - 哪个db在flutter和android中都很常见