Archived
final commit
This commit is contained in:
1 parent
2813e72647
commit
42155d9e31
10 files changed
+432
-72
No files matched your search
+29
-1
@@ -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'),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user