diff --git a/lib/src/flutter_tools/flutter_tools.dart b/lib/src/flutter_tools/flutter_tools.dart index be3326b1..25e3afe2 100644 --- a/lib/src/flutter_tools/flutter_tools.dart +++ b/lib/src/flutter_tools/flutter_tools.dart @@ -9,18 +9,23 @@ import 'package:process_run/process_run.dart'; /// Runs a process Future runFlutter(String exec, List args, {String workingDirectory}) async { + stdin.lineMode = false; + final pr = await run( exec, args, workingDirectory: workingDirectory, stdout: stdout, stderr: stderr, + stdin: stdin, runInShell: Platform.isWindows, ); // Cancel subscription before close await stdout.close(); await stderr.close(); + stdin.lineMode = true; + exitCode = pr.exitCode; }