Remove ModalPosition (#3734)

Clients of getPosition should just use a one-child custom layout delegate
instead.

Fixes #2484
This commit is contained in:
Adam Barth
2016-05-04 12:40:50 -07:00
parent a5920c3d52
commit a5eb4c04c7
3 changed files with 55 additions and 47 deletions

View File

@@ -221,9 +221,8 @@ class GridListDemoState extends State<GridListDemo> {
];
final EdgeInsets padding = MediaQuery.of(context).padding;
final ModalPosition position = new ModalPosition(
right: padding.right + 16.0,
top: padding.top + 16.0
final RelativeRect position = new RelativeRect.fromLTRB(
0.0, padding.top + 16.0, padding.right + 16.0, 0.0
);
showMenu(context: context, position: position, items: items).then((GridDemoTileStyle value) {