mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Simplify code
This commit is contained in:
@ -292,15 +292,7 @@ class _NotificationTile extends StatelessWidget {
|
||||
onTap: () => _onTap(context),
|
||||
title: Text(message),
|
||||
subtitle: Text(diffTimeFromNowToStr(notification.timeCreate)),
|
||||
onLongPressWithInfo: (size, offset) {
|
||||
final position = RelativeRect.fromLTRB(
|
||||
offset.dx - size.width,
|
||||
offset.dy,
|
||||
offset.dx,
|
||||
offset.dy + size.height,
|
||||
); //fromSize(Rect.fromPoints(offset, Offset.zero), size);*/
|
||||
|
||||
print(position);
|
||||
onLongPressOpenMenu: (position) {
|
||||
showMenu(context: context, position: position, items: [
|
||||
PopupMenuItem(
|
||||
child: Text(tr("Delete")),
|
||||
|
Reference in New Issue
Block a user