mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can take videos
This commit is contained in:
@ -48,3 +48,6 @@ Future<PickedFile> pickImage(BuildContext context) async {
|
||||
|
||||
/// Check if a mime type maps to an image or not
|
||||
bool isImage(String mimeType) => mimeType.startsWith("image/");
|
||||
|
||||
/// Check if a mime type maps to an image or not
|
||||
bool isVideo(String mimeType) => mimeType.startsWith("video/mp4");
|
||||
|
Reference in New Issue
Block a user