fix(Desktop): Input no longer passed through titlebar (#179)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-12-12 23:37:57 +01:00 committed by GitHub
parent c6080824d7
commit da0eb9e7c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,22 +46,25 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
TargetPlatform.windows || TargetPlatform.linux => Row( TargetPlatform.windows || TargetPlatform.linux => Row(
children: [ children: [
Expanded( Expanded(
child: DragToMoveArea( child: Container(
child: Row( color: Colors.black.withOpacity(0),
crossAxisAlignment: CrossAxisAlignment.stretch, child: DragToMoveArea(
mainAxisSize: MainAxisSize.max, child: Row(
children: [ crossAxisAlignment: CrossAxisAlignment.stretch,
Container( mainAxisSize: MainAxisSize.max,
padding: const EdgeInsets.only(left: 16), children: [
child: DefaultTextStyle( Container(
style: TextStyle( padding: const EdgeInsets.only(left: 16),
color: iconColor, child: DefaultTextStyle(
fontSize: 14, style: TextStyle(
color: iconColor,
fontSize: 14,
),
child: Text(widget.label ?? ""),
), ),
child: Text(widget.label ?? ""),
), ),
), ],
], ),
), ),
), ),
), ),