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
Fix bug in singe-image example
  • Loading branch information
stuartmorgan-g committed Jun 7, 2022
commit fda0ed54089e03f3922f6cf93937437b6c3b731b
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ class OpenImagePage extends StatelessWidget {
label: 'images',
extensions: <String>['jpg', 'png'],
);
final List<XFile> files =
await openFiles(acceptedTypeGroups: <XTypeGroup>[typeGroup]);
if (files.isEmpty) {
final XFile? file =
await openFile(acceptedTypeGroups: <XTypeGroup>[typeGroup]);
if (file == null) {
// Operation was canceled by the user.
return;
}
final XFile file = files[0];
final String fileName = file.name;
final String filePath = file.path;

Expand Down