chore: use latest file picker version
This commit is contained in:
parent
879305dead
commit
955db55b8a
1 changed files with 14 additions and 14 deletions
|
|
@ -416,7 +416,7 @@ class _HomePageState extends State<HomePage> {
|
|||
}
|
||||
} else {
|
||||
// for desktop
|
||||
final path = await FilePicker.saveFile(
|
||||
final path = await FilePicker.platform.saveFile(
|
||||
fileName: 'document.${fileType.extension}',
|
||||
);
|
||||
if (path != null) {
|
||||
|
|
@ -444,7 +444,7 @@ class _HomePageState extends State<HomePage> {
|
|||
}
|
||||
|
||||
void _importFile(ExportFileType fileType) async {
|
||||
final result = await FilePicker.pickFiles(
|
||||
final result = await FilePicker.platform.pickFiles(
|
||||
allowMultiple: false,
|
||||
allowedExtensions: [fileType.extension],
|
||||
type: FileType.custom,
|
||||
|
|
|
|||
Loading…
Reference in a new issue