--keep-app-running is no more avaliable

This commit is contained in:
huy 2022-07-12 12:44:03 +07:00
parent 7ee9f801d1
commit 8ae1e47fc7
1 changed files with 6 additions and 5 deletions

View File

@ -119,10 +119,6 @@ class FlutterRunProcessHandler extends ProcessHandler {
arguments.add('--verbose');
}
if (_keepAppRunning) {
arguments.add('--keep-app-running');
}
if (_logFlutterProcessOutput) {
stdout.writeln(
'Invoking from working directory `${_workingDirectory ?? './'}` command: `flutter ${arguments.join(' ')}`',
@ -162,7 +158,12 @@ class FlutterRunProcessHandler extends ProcessHandler {
var exitCode = -1;
_ensureRunningProcess();
if (_runningProcess != null) {
_runningProcess!.stdin.write('q');
if (_keepAppRunning) {
_runningProcess!.stdin.write('d');
} else {
_runningProcess!.stdin.write('q');
}
for (var s in _openSubscriptions) {
s.cancel();
}