We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b891c7c commit cd7e52aCopy full SHA for cd7e52a
gallery/gallery/tool/grind.dart
@@ -149,8 +149,9 @@ Future<String> _startProcess(String executable,
149
150
/// Return the flutter root path from the environment variables.
151
String _flutterRootPath() {
152
+ final separator = (Platform.isWindows) ? ';' : ':';
153
final flutterBinPath =
- Platform.environment['PATH'].split(':').lastWhere((setting) {
154
+ Platform.environment['PATH'].split(separator).lastWhere((setting) {
155
return path.canonicalize(setting).endsWith(path.join('flutter', 'bin'));
156
});
157
return Directory(flutterBinPath).parent.path;
0 commit comments