fix drag issue

This commit is contained in:
wgh19
2024-05-31 15:28:04 +08:00
parent 676e7508c7
commit 9ad6207bd5

View File

@@ -269,12 +269,18 @@ class _MainPageState extends State<MainPage> with WindowListener {
if (!App.isDesktop) const Spacer(), if (!App.isDesktop) const Spacer(),
if (App.isDesktop) if (App.isDesktop)
const Expanded( const Expanded(
child: SizedBox(
height: double.infinity,
child: DragToMoveArea( child: DragToMoveArea(
child: Align(
alignment: Alignment.centerLeft,
child: Text( child: Text(
"Pixes", "Pixes",
style: TextStyle(fontSize: 13), style: TextStyle(fontSize: 13),
),
)), )),
), ),
),
for (var action in controller.actions) for (var action in controller.actions)
Button( Button(
onPressed: action.onPressed, onPressed: action.onPressed,