dead code and minor warning removal
This commit is contained in:
parent
777dab2873
commit
9b0b72003a
@ -48,6 +48,7 @@ class EmailListScreen extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore: must_be_immutable
|
||||||
class EmailPage extends StatefulWidget {
|
class EmailPage extends StatefulWidget {
|
||||||
EmailPage({Key? key}) : super(key: key);
|
EmailPage({Key? key}) : super(key: key);
|
||||||
String selectedFolder = "INBOX";
|
String selectedFolder = "INBOX";
|
||||||
|
@ -163,34 +163,32 @@ class _HomeScreenState extends State<HomeScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _showPopupMenu(BuildContext context, Offset position) async {
|
// void _showPopupMenu(BuildContext context, Offset position) async {
|
||||||
final RenderBox overlay =
|
// final RenderBox overlay =
|
||||||
Overlay.of(context).context.findRenderObject() as RenderBox;
|
// Overlay.of(context).context.findRenderObject() as RenderBox;
|
||||||
|
|
||||||
await showMenu<String>(
|
// await showMenu<String>(
|
||||||
context: context,
|
// context: context,
|
||||||
position: RelativeRect.fromLTRB(
|
// position: RelativeRect.fromLTRB(
|
||||||
position.dx,
|
// position.dx,
|
||||||
position.dy,
|
// position.dy,
|
||||||
overlay.size.width - position.dx,
|
// overlay.size.width - position.dx,
|
||||||
overlay.size.height - position.dy,
|
// overlay.size.height - position.dy,
|
||||||
),
|
// ),
|
||||||
items: <PopupMenuEntry<String>>[
|
// items: <PopupMenuEntry<String>>[
|
||||||
PopupMenuItem<String>(
|
// PopupMenuItem<String>(
|
||||||
value: 'Open',
|
// value: 'Open',
|
||||||
child: Text('Open'),
|
// child: Text('Open'),
|
||||||
),
|
// ),
|
||||||
PopupMenuItem<String>(
|
// PopupMenuItem<String>(
|
||||||
value: 'Reply',
|
// value: 'Reply',
|
||||||
child: Text('Reply'),
|
// child: Text('Reply'),
|
||||||
),
|
// ),
|
||||||
PopupMenuItem<String>(
|
// PopupMenuItem<String>(
|
||||||
value: 'Delete',
|
// value: 'Delete',
|
||||||
child: Text('Delete'),
|
// child: Text('Delete'),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
//show popup menu
|
|
||||||
|
Loading…
Reference in New Issue
Block a user