|
@@ -163,34 +163,32 @@ class _HomeScreenState extends State<HomeScreen> {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- void _showPopupMenu(BuildContext context, Offset position) async {
|
|
|
- final RenderBox overlay =
|
|
|
- Overlay.of(context).context.findRenderObject() as RenderBox;
|
|
|
+// void _showPopupMenu(BuildContext context, Offset position) async {
|
|
|
+// final RenderBox overlay =
|
|
|
+// Overlay.of(context).context.findRenderObject() as RenderBox;
|
|
|
|
|
|
- await showMenu<String>(
|
|
|
- context: context,
|
|
|
- position: RelativeRect.fromLTRB(
|
|
|
- position.dx,
|
|
|
- position.dy,
|
|
|
- overlay.size.width - position.dx,
|
|
|
- overlay.size.height - position.dy,
|
|
|
- ),
|
|
|
- items: <PopupMenuEntry<String>>[
|
|
|
- PopupMenuItem<String>(
|
|
|
- value: 'Open',
|
|
|
- child: Text('Open'),
|
|
|
- ),
|
|
|
- PopupMenuItem<String>(
|
|
|
- value: 'Reply',
|
|
|
- child: Text('Reply'),
|
|
|
- ),
|
|
|
- PopupMenuItem<String>(
|
|
|
- value: 'Delete',
|
|
|
- child: Text('Delete'),
|
|
|
- ),
|
|
|
- ],
|
|
|
- );
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-//show popup menu
|
|
|
+// await showMenu<String>(
|
|
|
+// context: context,
|
|
|
+// position: RelativeRect.fromLTRB(
|
|
|
+// position.dx,
|
|
|
+// position.dy,
|
|
|
+// overlay.size.width - position.dx,
|
|
|
+// overlay.size.height - position.dy,
|
|
|
+// ),
|
|
|
+// items: <PopupMenuEntry<String>>[
|
|
|
+// PopupMenuItem<String>(
|
|
|
+// value: 'Open',
|
|
|
+// child: Text('Open'),
|
|
|
+// ),
|
|
|
+// PopupMenuItem<String>(
|
|
|
+// value: 'Reply',
|
|
|
+// child: Text('Reply'),
|
|
|
+// ),
|
|
|
+// PopupMenuItem<String>(
|
|
|
+// value: 'Delete',
|
|
|
+// child: Text('Delete'),
|
|
|
+// ),
|
|
|
+// ],
|
|
|
+// );
|
|
|
+// }
|
|
|
+// }
|