1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Simplify code

This commit is contained in:
2020-05-07 19:04:58 +02:00
parent 8943ae8144
commit 89d3b79617
2 changed files with 23 additions and 14 deletions

View File

@ -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")),