TF-2116 Add RequestReadReceipt and more option

(cherry picked from commit 5f9eb6b9c78239ffb586eea98feaf3e6c30981f9)
This commit is contained in:
dab246
2023-09-07 19:10:23 +07:00
committed by Dat H. Pham
parent 3809a05a35
commit 655446133c
17 changed files with 354 additions and 44 deletions
@@ -16,14 +16,24 @@ mixin PopupContextMenuActionMixin {
.show();
}
void openPopupMenuAction(BuildContext context, RelativeRect? position, List<PopupMenuEntry> popupMenuItems) async {
void openPopupMenuAction(
BuildContext context,
RelativeRect? position,
List<PopupMenuEntry> popupMenuItems,
{
double? radius,
}
) async {
await showMenu(
context: context,
position: position ?? const RelativeRect.fromLTRB(16, 40, 16, 16),
color: Colors.white,
elevation: 4,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
items: popupMenuItems);
context: context,
position: position ?? const RelativeRect.fromLTRB(16, 40, 16, 16),
color: Colors.white,
elevation: 4,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(radius ?? 16))
),
items: popupMenuItems
);
}
Widget buildCancelButton(BuildContext context) {