chore: Updated flutter to 3.29.2 + bugfixes (#296)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-04-05 17:11:20 +02:00 committed by GitHub
parent 671bb88b13
commit d47f1e19da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 79 additions and 130 deletions

View file

@ -34,14 +34,6 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
@override
Widget build(BuildContext context) {
final brightness = widget.brightness ?? Theme.of(context).brightness;
final shadows = brightness == Brightness.dark
? [
BoxShadow(
blurRadius: 1, spreadRadius: 1, color: Theme.of(context).colorScheme.surface.withValues(alpha: 1)),
BoxShadow(blurRadius: 8, spreadRadius: 2, color: Colors.black.withValues(alpha: 0.2)),
BoxShadow(blurRadius: 3, spreadRadius: 2, color: Colors.black.withValues(alpha: 0.3)),
]
: <BoxShadow>[];
final iconColor = Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.65);
return MouseRegion(
onEnter: (event) => setState(() => hovering = true),
@ -112,7 +104,6 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
Icons.minimize_rounded,
color: iconColor,
size: 20,
shadows: shadows,
),
),
);
@ -154,7 +145,6 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
maximized ? Icons.maximize_rounded : Icons.crop_square_rounded,
color: iconColor,
size: 19,
shadows: shadows,
),
),
);
@ -176,7 +166,6 @@ class _DefaultTitleBarState extends ConsumerState<DefaultTitleBar> with WindowLi
Icons.close_rounded,
color: iconColor,
size: 23,
shadows: shadows,
),
),
),