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

Start to record MP3 files

This commit is contained in:
2021-03-12 20:52:26 +01:00
parent 6fc1a263d2
commit e7b1beca50
7 changed files with 365 additions and 3 deletions

View File

@ -49,5 +49,8 @@ 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
/// Check if a mime type maps to a video or not
bool isVideo(String mimeType) => mimeType.startsWith("video/mp4");
/// Check if a mime type maps to an audio file or not
bool isAudio(String mimeType) => mimeType.startsWith("audio/mpeg");

View File

@ -83,6 +83,10 @@ void showSimpleSnack(BuildContext context, String message) {
Scaffold.of(context).showSnackBar(SnackBar(content: Text(message)));
}
void snack(BuildContext context, String message) {
Scaffold.of(context).showSnackBar(SnackBar(content: Text(message)));
}
/// Show an alert dialog to ask the user to enter a string
///
/// Returns entered string if the dialog is confirmed, null else