Explorar el Código

1、重启App添加时间

tags/0.0.9+10
PH2 hace 4 años
padre
commit
a0ddb25f1d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      lib/pages/custom_page/custom_item_page.dart

+ 3
- 1
lib/pages/custom_page/custom_item_page.dart Ver fichero

@@ -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;


Cargando…
Cancelar
Guardar