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:
@ -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");
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user