mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-09-19 05:48:54 +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