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

[file_selector] Migrate DialogWrapper to Dart. #6539

Closed

Conversation

adpinola
Copy link
Contributor

@adpinola adpinola commented Oct 5, 2022

This PR includes the changes in #6518.
This finishes the DialogWrapper Dart implementation.

Things we have done:

  • Add DialogWrapper implementation.
  • Add ffi and win32 package.
  • Add IFileDialog Factory.

Issue: [file_selector_windows] Migrate CPP implementation to Dart. #112212

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/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin 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.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Add methods of FileDialogController

Add FileDialogController tests.

Change the location where the free of the pointer is placed.
Add methods of FileDialogController

Add FileDialogController tests.

Extract the interface conversion to a new class to make it testable.

Add DialogWrapper constructor.

Add test constructor to DialogWrapper and add two tests.

Add mock for FileDialogController and tests for implemented methods.

free memory allocations

remove unused properties in dialog_wrapper

use Arena

Return the value of the path.

fix extension string list to remove trailing semicolon
@adpinola adpinola force-pushed the 112212-migrate-dialog-wrapper-to-dart branch from ea26eaf to dff1131 Compare October 14, 2022 17:57
@adpinola adpinola closed this Oct 20, 2022
@adpinola adpinola deleted the 112212-migrate-dialog-wrapper-to-dart branch October 20, 2022 17:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants