Sfoglia il codice sorgente

1、模版更新bug修复

tags/0.0.9+11^0
PH2 3 anni fa
parent
commit
2adbbd87bd
2 ha cambiato i file con 6 aggiunte e 8 eliminazioni
  1. +1
    -3
      lib/pages/custom_page/custom_item_page.dart
  2. +5
    -5
      lib/widgets/restart_widget/restart_widget.dart

+ 1
- 3
lib/pages/custom_page/custom_item_page.dart Vedi File

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


+ 5
- 5
lib/widgets/restart_widget/restart_widget.dart Vedi File

@@ -68,11 +68,11 @@ class _RestartWidgetState extends State<RestartWidget> {

@override
Widget build(BuildContext context) {
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
if (!inProduction) {
///debug阶段可重启
isFirst=true;
}
// const bool inProduction = const bool.fromEnvironment("dart.vm.product");
// if (!inProduction) {
// ///debug阶段可重启
// isFirst=true;
// }
return StreamBuilder(stream: outData,builder: (context,asyn){
if(asyn.data==null&&!isFirst){
return Scaffold(


Caricamento…
Annulla
Salva