Ver a proveniência

1、模版更新bug修复

tags/0.0.9+11^0
PH2 há 3 anos
ascendente
cometimento
2adbbd87bd
2 ficheiros alterados com 6 adições e 8 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

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


Carregando…
Cancelar
Guardar