Skip to content

[file_selector] Add support for getting multiple directories in macOS#68

Closed
VanesaOshiro wants to merge 1 commit into74323-add-get-directories-paths-platform-interfacefrom
66978-add-get-multiple-directories-in-macos
Closed

[file_selector] Add support for getting multiple directories in macOS#68
VanesaOshiro wants to merge 1 commit into74323-add-get-directories-paths-platform-interfacefrom
66978-add-get-multiple-directories-in-macos

Conversation

@VanesaOshiro
Copy link
Copy Markdown

This PR adds the macOS implementation for retrieving multiple directories paths from a select folder dialog.

Issue: flutter/flutter#74323

image

image

@VanesaOshiro VanesaOshiro force-pushed the 66978-add-get-multiple-directories-in-macos branch from 0af035e to bdb08aa Compare October 14, 2022 11:30
}

@override
Future<List<String?>> getDirectoriesPaths({
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you review this? @eugerossetto made a change to the method in platform_interface.
I think this should be the actual implementation:

Future<List<String>?> getDirectoriesPaths({
    String? initialDirectory,
    String? confirmButtonText,
  }) async {
      return _channel.invokeListMethod<String>(
      'getDirectoriesPaths',
      <String, dynamic>{
        'initialDirectory': initialDirectory,
        'confirmButtonText': confirmButtonText,
        'multiple': true,
      },
    );
  }

@VanesaOshiro VanesaOshiro force-pushed the 66978-add-get-multiple-directories-in-macos branch 4 times, most recently from c996a7a to 50b7a3b Compare October 14, 2022 13:52
@VanesaOshiro VanesaOshiro force-pushed the 66978-add-get-multiple-directories-in-macos branch from 50b7a3b to 843a89f Compare October 14, 2022 15:54
@adpinola
Copy link
Copy Markdown

@adpinola adpinola closed this Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants