File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,16 @@ function M.get(callback)
126126 end
127127 end
128128
129+ local flutter_sdk_path = nil
130+ if config .flutter_sdk then flutter_sdk_path = flutter_sdk_path end
131+
129132 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 ) }
133+ local flutter_path = config .flutter_path
134+ local flutter_path_real_try = fn .resolve (flutter_path )
135+ _paths = {
136+ flutter_bin = flutter_path ,
137+ flutter_sdk = flutter_path or _flutter_sdk_root (flutter_path_real_try ),
138+ }
132139 _paths .dart_sdk = _dart_sdk_root (_paths )
133140 _paths .dart_bin = _flutter_sdk_dart_bin (_paths .flutter_sdk )
134141 return callback (_paths )
You can’t perform that action at this time.
0 commit comments