mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Extend the possibilities of file picker
This commit is contained in:
@ -45,3 +45,6 @@ Future<PickedFile> pickImage(BuildContext context) async {
|
||||
? ImageSource.camera
|
||||
: ImageSource.gallery);
|
||||
}
|
||||
|
||||
/// Check if a mime type maps to an image or not
|
||||
bool isImage(String mimeType) => mimeType.startsWith("image/");
|
||||
|
Reference in New Issue
Block a user