瀏覽代碼

1、重启App添加时间

tags/0.0.9+10
PH2 4 年之前
父節點
當前提交
a0ddb25f1d
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      lib/pages/custom_page/custom_item_page.dart

+ 3
- 1
lib/pages/custom_page/custom_item_page.dart 查看文件

@@ -137,7 +137,9 @@ class __CustomItemPageContainerState extends State<_CustomItemPageContainer> wit
if (current is CustomItemPageAppRestartState) {
// 重启App
Logger.log('开始重新启动App CustomItemPageAppRestartState');
EventUtil.instance.fire(ReloadEvent());
Timer(Duration(milliseconds: 1000), () {
EventUtil.instance.fire(ReloadEvent());
});
return false;
}
return true;


Loading…
取消
儲存