Skip to content

[file_selector] Add getDirectoryPaths #3871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

stuartmorgan-g
Copy link
Contributor

Exposes the new getDirectoryPaths API, and updates the desktop implementation package constraints to ensure that the implementations are present.

This is a slightly updated recreation of
flutter/plugins#6576

Fixes flutter/flutter#74323

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Exposes the new `getDirectoryPaths` API, and updates the desktop
implementation package constraints to ensure that the implementations
are present.

This is a slightly updated recreation of
flutter/plugins#6576

Fixes flutter/flutter#74323
@ahmednfwela

This comment was marked as off-topic.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

Looks good modulo a tiny nit on comments.

/// Screen that allows the user to select one or more directories using `getDirectoryPaths`,
/// then displays the selected directories in a dialog.
class GetMultipleDirectoriesPage extends StatelessWidget {
/// Default Constructor
Copy link
Member

Choose a reason for hiding this comment

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

We can probably kill this line. It doesn't add anything. If for some reason we need it, it should end in a period.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's because we have public_member_api_docs on, so you have to either put a basically useless comment, or an override. I'll replace this with my go-to not very helpful comment for example constructors that it returns a new instance of the page, since at least that's explaining what it does rather than what it is.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label May 4, 2023
@auto-submit auto-submit bot merged commit 3ee170b into flutter:main May 4, 2023
@stuartmorgan-g stuartmorgan-g deleted the file-selector-get-directories branch May 5, 2023 00:47
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 5, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 5, 2023
flutter/packages@6bd59cd...a0f8fd8

2023-05-05 [email protected] tree fix (flutter/packages#3910)
2023-05-05 [email protected] manual roll and fix (flutter/packages#3903)
2023-05-04 [email protected] [file_selector] Add `getDirectoryPaths` (flutter/packages#3871)
2023-05-04 [email protected] [go_router_builder] fixed typo in README (flutter/packages#3835)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
Exposes the new `getDirectoryPaths` API, and updates the desktop implementation package constraints to ensure that the implementations are present.

This is a slightly updated recreation of
flutter/plugins#6576

Fixes flutter/flutter#74323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: file_selector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for selection of multiple directories, through desktop's native open panel, in 'file_selector' package
3 participants