Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit c7420de

Browse files
adpinolaVanesaOshiro
authored andcommitted
apply feedback
1 parent 67be46c commit c7420de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/file_selector/file_selector_platform_interface/lib/src/method_channel/method_channel_file_selector.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ class MethodChannelFileSelector extends FileSelectorPlatform {
8181
String? initialDirectory,
8282
String? confirmButtonText,
8383
}) async {
84-
return _channel.invokeMethod<String>(
84+
final List<String>? pathList = await _channel.invokeListMethod<String>(
8585
'getDirectoryPath',
8686
<String, dynamic>{
8787
'initialDirectory': initialDirectory,
8888
'confirmButtonText': confirmButtonText,
8989
},
9090
);
91+
return pathList?.first;
9192
}
9293

9394
@override

0 commit comments

Comments
 (0)