mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
fix menu overflow
This commit is contained in:
@@ -28,6 +28,9 @@ class _MenuRoute<T> extends PopupRoute<T> {
|
||||
var width = entries.first.icon == null ? 216.0 : 242.0;
|
||||
final size = MediaQuery.of(context).size;
|
||||
var left = location.dx;
|
||||
if (left < 10) {
|
||||
left = 10;
|
||||
}
|
||||
if (left + width > size.width - 10) {
|
||||
left = size.width - width - 10;
|
||||
}
|
||||
|
Reference in New Issue
Block a user