|
|
|
|
@ -78,7 +78,7 @@ class ImageOptions {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onFilesTap: () async {
|
|
|
|
|
FilePickerResult? result = await FilePicker.pickFiles(
|
|
|
|
|
FilePickerResult? result = await FilePicker.platform.pickFiles(
|
|
|
|
|
type: FileType.custom,
|
|
|
|
|
allowedExtensions: [
|
|
|
|
|
'jpg',
|
|
|
|
|
@ -94,7 +94,8 @@ class ImageOptions {
|
|
|
|
|
'zip',
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
List<File> files = result!.paths.map((path) => File(path!)).toList();
|
|
|
|
|
if (result == null) return;
|
|
|
|
|
List<File> files = result.paths.map((path) => File(path!)).toList();
|
|
|
|
|
image(result.files.first.path.toString(), files.first);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|