Added Chat context menu for chat 'mark as read', 'mark as unread', 'add to favorites', 'remove from favorites', 'leave conversation'

added Chat favorite badge and mark chat as read when entering it
This commit is contained in:
2023-06-04 18:28:15 +02:00
parent 16c251e4b1
commit 4ef21a362b
7 changed files with 239 additions and 24 deletions

View File

@ -25,8 +25,8 @@ class ConfirmDialog extends StatelessWidget {
Navigator.of(context).pop();
}, child: Text(cancelButton)),
TextButton(onPressed: () {
onConfirm();
Navigator.of(context).pop();
onConfirm();
}, child: Text(confirmButton)),
],
);
@ -37,7 +37,7 @@ class ConfirmDialog extends StatelessWidget {
context: context,
builder: (context) => ConfirmDialog(
title: "Link öffnen",
content: "Möchtest du den folgenden Link öffnen?\n${url}",
content: "Möchtest du den folgenden Link öffnen?\n$url",
confirmButton: "Öffnen",
onConfirm: () => launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication),
),