final commit

This commit is contained in:
2023-09-09 00:30:56 +02:00
parent 2813e72647
commit 42155d9e31
10 changed files with 432 additions and 72 deletions

View File

@@ -202,7 +202,35 @@ class MyHomePageState extends State<MyHomePage> {
);
},
child: const Text('Thumbnail'),
)
),
ElevatedButton(
onPressed: () async {
final result = await MoxplatformPlugin.platform.pickFiles(FilePickerType.image, false);
print('Picked files $result');
},
child: const Text('Pick image'),
),
ElevatedButton(
onPressed: () async {
final result = await MoxplatformPlugin.platform.pickFiles(FilePickerType.image, true);
print('Picked files $result');
},
child: const Text('Pick multiple images'),
),
ElevatedButton(
onPressed: () async {
final result = await MoxplatformPlugin.platform.pickFiles(FilePickerType.imageAndVideo, true);
print('Picked files $result');
},
child: const Text('Pick multiple images and videos'),
),
ElevatedButton(
onPressed: () async {
final result = await MoxplatformPlugin.platform.pickFiles(FilePickerType.generic, true);
print('Picked files $result');
},
child: const Text('Pick multiple generic files'),
),
],
),
),