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