1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can take videos

This commit is contained in:
2021-03-12 19:10:10 +01:00
parent 19d4e1d31c
commit 8f7ca14586
3 changed files with 38 additions and 2 deletions

View File

@ -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");