|
|
@ -799,6 +799,7 @@ class DesignComponentPage extends HookWidget { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
final file = File(selectedFiles.files[0].path!); |
|
|
|
final file = File(selectedFiles.files[0].path!); |
|
|
|
|
|
|
|
nav.pop(); |
|
|
|
loadScript(await file.readAsString()); |
|
|
|
loadScript(await file.readAsString()); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
showDialog( |
|
|
|
showDialog( |
|
|
@ -819,7 +820,6 @@ class DesignComponentPage extends HookWidget { |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
nav.pop(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
if (scriptingEnvironment.value != null) ...[ |
|
|
|
if (scriptingEnvironment.value != null) ...[ |
|
|
|