这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: make it possible to filter files by type #55

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
merged 1 commit into from
Apr 6, 2024

Conversation

poppingmoon
Copy link
Owner

Add type property to FilePickerSheet, which controlls pickable file type.

For iOS, pass FileType.media to FilePicker.platform.pickFiles() by default.
This is because if type is FileType.any, iOS opens "Files" app, which is inconvenient for basic usage.
With FileType.media, it opens "Photos" app, where users can find their images and videos.

Close #54

Add `type` property to `FilePickerSheet`, which controlls pickable file
type.

For iOS, pass `FileType.media` to `FilePicker.platform.pickFiles()` by
default.
This is because if `type` is `FileType.any`, iOS opens "Files" app,
which is inconvenient for basic usage.
With `FileType.media`, it opens "Photos" app, where users can find their
images and videos.

Close #54
@poppingmoon poppingmoon merged commit 95c082b into main Apr 6, 2024
@poppingmoon poppingmoon deleted the file-picker-type branch April 6, 2024 01:27
@poppingmoon poppingmoon mentioned this pull request Apr 10, 2024
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.

iOS:写真アプリの写真を選択したい
1 participant