Popup menu position fix

This commit is contained in:
Yegor Vialov 2020-05-01 19:15:50 +00:00
parent 01c0a08fa8
commit f28e5493dc

View File

@ -611,7 +611,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
icon: mediaMenuIcon, icon: mediaMenuIcon,
onPressed: () { onPressed: () {
showMenu( showMenu(
position: RelativeRect.fromLTRB(MediaQuery.of(context).size.width, 100.0, 50, 0.0), position: RelativeRect.fromLTRB(MediaQuery.of(context).size.width, MediaQuery.of(context).padding.top + Sizes.iconSize + 20, 50, 0),
context: context, context: context,
items: mediaMenuItems items: mediaMenuItems
).then((String val) { ).then((String val) {
@ -628,7 +628,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
"mdi:dots-vertical"), color: Colors.white,), "mdi:dots-vertical"), color: Colors.white,),
onPressed: () { onPressed: () {
showMenu( showMenu(
position: RelativeRect.fromLTRB(MediaQuery.of(context).size.width, 100, 0.0, 0.0), position: RelativeRect.fromLTRB(MediaQuery.of(context).size.width, MediaQuery.of(context).padding.top + Sizes.iconSize + 20, 0.0, 0.0),
context: context, context: context,
items: serviceMenuItems items: serviceMenuItems
).then((String val) { ).then((String val) {