mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +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