opt: scrollable on menubar, avoid overflow

This commit is contained in:
Kingtous 2023-02-14 11:50:04 +08:00
parent b2827303e1
commit 20be9e10b1

View File

@ -439,9 +439,12 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
color: Colors.white, color: Colors.white,
border: Border.all(color: MyTheme.border), border: Border.all(color: MyTheme.border),
), ),
child: Row( child: SingleChildScrollView(
mainAxisSize: MainAxisSize.min, scrollDirection: Axis.horizontal,
children: menubarItems, child: Row(
mainAxisSize: MainAxisSize.min,
children: menubarItems,
),
)), )),
_buildDraggableShowHide(context), _buildDraggableShowHide(context),
])); ]));