Popup menu position fix
This commit is contained in:
parent
01c0a08fa8
commit
f28e5493dc
@ -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) {
|
||||||
|
Reference in New Issue
Block a user