Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6c71647
Add detail comment in file_selector
8rine23 Feb 13, 2022
b021530
change sample code for file_selector
8rine23 Feb 13, 2022
a6cc58f
Update CHAGELOG.md
8rine23 Feb 13, 2022
08a3dea
Fix CHANGELOG version
8rine23 Feb 13, 2022
2b391d6
Remove const from MyApp() in widget test
8rine23 Feb 13, 2022
fe10180
Sort directive sections alphabetically
8rine23 Feb 13, 2022
09d9bf8
Update Authors
8rine23 Feb 13, 2022
a3a820d
Fix my mailaddress
8rine23 Feb 13, 2022
422b133
remove accidentally created test
8rine23 Feb 17, 2022
63bbfe8
fix comment of function in file_selector.dart
8rine23 Mar 27, 2022
55bd1a5
install path_provider
8rine23 Mar 27, 2022
d51b01c
change initial directory to useful example
8rine23 Mar 27, 2022
cbed80f
fix not to regress web
8rine23 Mar 27, 2022
d9dc0bc
fix typo
8rine23 Mar 27, 2022
229657d
fix button labels not to change in example
8rine23 Mar 27, 2022
d190b51
fix CHANGELOG.md to follow CHANGELOG style
8rine23 Mar 27, 2022
c31eea7
Merge branch 'main' into towayamashita-patch-1
8rine23 Mar 27, 2022
750f8b7
Merge branch 'main' into towayamashita-patch-1
stuartmorgan-g Jun 7, 2022
ef47a7a
Remove some use of initialDirectory, and add comments on the others
stuartmorgan-g Jun 7, 2022
e0eac1a
Clean up comments
stuartmorgan-g Jun 7, 2022
bbe266d
Missing newline
stuartmorgan-g Jun 7, 2022
bd4e16b
Accidentally missed changes
stuartmorgan-g Jun 7, 2022
fda0ed5
Fix bug in singe-image example
stuartmorgan-g Jun 7, 2022
e982e74
Convert to code-excerpt
stuartmorgan-g Jun 7, 2022
28fe8a4
Apply suggestions from code review
stuartmorgan Jun 9, 2022
93a87a5
Merge branch 'main' into towayamashita-patch-1
stuartmorgan-g Jun 9, 2022
73d596e
Update save example
stuartmorgan-g Jun 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Accidentally missed changes
  • Loading branch information
stuartmorgan-g committed Jun 7, 2022
commit bd4e16b1cacff21faa7e91fc0cbfef192d256bce
27 changes: 16 additions & 11 deletions packages/file_selector/file_selector/lib/file_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ Future<XFile?> openFile({
confirmButtonText: confirmButtonText);
}

/// Open file dialog for loading files and return a list of file paths.
/// Opens a file selection dialog and returns the list of paths chosen by the
/// user.
///
/// [acceptedTypeGroups] is the file type that can be selected in the dialog.
/// there are differences in behavior depending on the platform as follows.
/// - Windows: Each group will be an entry in a list of filter options.
/// - macOS: The union of all types allowed by all of the groups will be allowed.
/// [acceptedTypeGroups] is a list of file type groups that can be selected in
/// the dialog. How this is displayed depends on the pltaform, for example:
/// - On Windows and Linux, each group will be an entry in a list of filter
/// options.
/// - On macOS, the union of all types allowed by all of the groups will be
/// allowed.
///
/// [initialDirectory] is the full path to the directory that will be displayed
/// when the dialog is opened. When not provided, the platform will pick an
Expand All @@ -63,12 +66,14 @@ Future<List<XFile>> openFiles({
confirmButtonText: confirmButtonText);
}

/// Saves File to user's file system.
/// Opens a save dialog and returns the target path chosen by the user.
///
/// [acceptedTypeGroups] is the file type that can be selected in the dialog.
/// There are differences in behavior depending on the platform as follows.
/// - Windows: Each group will be an entry in a list of filter options.
/// - macOS: The union of all types allowed by all of the groups will be allowed.
/// [acceptedTypeGroups] is a list of file type groups that can be selected in
/// the dialog. How this is displayed depends on the pltaform, for example:
/// - On Windows and Linux, each group will be an entry in a list of filter
/// options.
/// - On macOS, the union of all types allowed by all of the groups will be
/// allowed.
///
/// [initialDirectory] is the full path to the directory that will be displayed
/// when the dialog is opened. When not provided, the platform will pick an
Expand All @@ -93,7 +98,7 @@ Future<String?> getSavePath({
confirmButtonText: confirmButtonText);
}

/// Gets a directory path from a user's file system.
/// Opens a directory selection dialog and returns the path chosen by the user.
///
/// [initialDirectory] is the full path to the directory that will be displayed
/// when the dialog is opened. When not provided, the platform will pick an
Expand Down