From da0eb9e7c67e980e18ea0d86f256569524ef4233 Mon Sep 17 00:00:00 2001 From: PartyDonut <42371342+PartyDonut@users.noreply.github.com> Date: Thu, 12 Dec 2024 23:37:57 +0100 Subject: [PATCH] fix(Desktop): Input no longer passed through titlebar (#179) Co-authored-by: PartyDonut --- lib/screens/shared/default_title_bar.dart | 31 +++++++++++++---------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/lib/screens/shared/default_title_bar.dart b/lib/screens/shared/default_title_bar.dart index e93e602..620daa4 100644 --- a/lib/screens/shared/default_title_bar.dart +++ b/lib/screens/shared/default_title_bar.dart @@ -46,22 +46,25 @@ class _DefaultTitleBarState extends ConsumerState with WindowLi TargetPlatform.windows || TargetPlatform.linux => Row( children: [ Expanded( - child: DragToMoveArea( - child: Row( - crossAxisAlignment: CrossAxisAlignment.stretch, - mainAxisSize: MainAxisSize.max, - children: [ - Container( - padding: const EdgeInsets.only(left: 16), - child: DefaultTextStyle( - style: TextStyle( - color: iconColor, - fontSize: 14, + child: Container( + color: Colors.black.withOpacity(0), + child: DragToMoveArea( + child: Row( + crossAxisAlignment: CrossAxisAlignment.stretch, + mainAxisSize: MainAxisSize.max, + children: [ + Container( + padding: const EdgeInsets.only(left: 16), + child: DefaultTextStyle( + style: TextStyle( + color: iconColor, + fontSize: 14, + ), + child: Text(widget.label ?? ""), ), - child: Text(widget.label ?? ""), ), - ), - ], + ], + ), ), ), ),