|
@@ -68,11 +68,11 @@ class _RestartWidgetState extends State<RestartWidget> { |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
Widget build(BuildContext context) { |
|
|
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){ |
|
|
return StreamBuilder(stream: outData,builder: (context,asyn){ |
|
|
if(asyn.data==null&&!isFirst){ |
|
|
if(asyn.data==null&&!isFirst){ |
|
|
return Scaffold( |
|
|
return Scaffold( |
|
|