chore: Update SDK

This commit is contained in:
Christian Pauly 2022-06-20 15:35:22 +02:00
commit 24ee341670
12 changed files with 94 additions and 46 deletions

View file

@ -399,6 +399,19 @@ class ChatController extends State<Chat> {
}
void voiceMessageAction() async {
if (PlatformInfos.isAndroid) {
final info = await DeviceInfoPlugin().androidInfo;
if ((info.version.sdkInt ?? 16) < 19) {
showOkAlertDialog(
context: context,
title: L10n.of(context)!.unsupportedAndroidVersion,
message: L10n.of(context)!.unsupportedAndroidVersionLong,
okLabel: L10n.of(context)!.close,
);
return;
}
}
if (await Record().hasPermission() == false) return;
final result = await showDialog<RecordingResult>(
context: context,