File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,15 @@ function M.get(callback)
126
126
end
127
127
end
128
128
129
+ local flutter_sdk_path = nil
130
+ if config .flutter_sdk then
131
+ flutter_sdk_path = flutter_sdk_path
132
+ end
133
+
129
134
if config .flutter_path then
130
- local flutter_path = fn .resolve (config .flutter_path )
131
- _paths = { flutter_bin = flutter_path , flutter_sdk = _flutter_sdk_root (flutter_path ) }
135
+ local flutter_path = config .flutter_path
136
+ local flutter_path_real_try = fn .resolve (flutter_path )
137
+ _paths = { flutter_bin = flutter_path , flutter_sdk = flutter_path or _flutter_sdk_root (flutter_path_real_try ) }
132
138
_paths .dart_sdk = _dart_sdk_root (_paths )
133
139
_paths .dart_bin = _flutter_sdk_dart_bin (_paths .flutter_sdk )
134
140
return callback (_paths )
You can’t perform that action at this time.
0 commit comments