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,
),
),
),

View file

@ -58,11 +58,7 @@ class ChapterRow extends ConsumerWidget {
child: Text(
"${chapter.name} \n${chapter.startPosition.humanize ?? context.localized.start}",
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
fontWeight: FontWeight.bold,
shadows: [
BoxShadow(color: Theme.of(context).cardColor, blurRadius: 6, spreadRadius: 2.0)
]),
style: Theme.of(context).textTheme.bodyMedium?.copyWith(fontWeight: FontWeight.bold),
),
),
),

View file

@ -341,13 +341,8 @@ class _PosterImageState extends ConsumerState<PosterImage> {
padding: const EdgeInsets.all(8),
child: Text(
widget.poster.title.maxLength(limitTo: 25),
style: Theme.of(context)
.textTheme
.labelLarge
?.copyWith(fontSize: 20, fontWeight: FontWeight.bold, shadows: [
const BoxShadow(blurRadius: 8, spreadRadius: 16),
const BoxShadow(blurRadius: 2, spreadRadius: 16),
]),
style:
Theme.of(context).textTheme.labelLarge?.copyWith(fontSize: 20, fontWeight: FontWeight.bold),
),
),
),

View file

@ -259,15 +259,9 @@ class EpisodePoster extends ConsumerWidget {
alignment: Alignment.bottomRight,
child: PopupMenuButton(
tooltip: "Options",
icon: Icon(
icon: const Icon(
Icons.more_vert,
color: Colors.white,
shadows: [
Shadow(color: Colors.black.withValues(alpha: 0.45), blurRadius: 8.0),
const Shadow(color: Colors.black, blurRadius: 16.0),
const Shadow(color: Colors.black, blurRadius: 32.0),
const Shadow(color: Colors.black, blurRadius: 64.0),
],
),
itemBuilder: (context) => actions.popupMenuItems(useIcons: true),
),

View file

@ -83,9 +83,6 @@ class _MediaBannerState extends ConsumerState<MediaBanner> {
@override
Widget build(BuildContext context) {
final overlayColor = ThemesData.of(context).dark.colorScheme.primaryContainer;
final shadows = [
BoxShadow(blurRadius: 12, spreadRadius: 8, color: overlayColor),
];
final currentItem = widget.items[currentPage.clamp(0, widget.items.length - 1)];
final double dragOpacity = (1 - dragOffset.abs()).clamp(0, 1);
@ -224,7 +221,6 @@ class _MediaBannerState extends ConsumerState<MediaBanner> {
currentItem.title,
maxLines: 2,
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
shadows: shadows,
color: Colors.white,
),
),
@ -235,7 +231,6 @@ class _MediaBannerState extends ConsumerState<MediaBanner> {
currentItem.label(context) ?? currentItem.subText ?? "",
maxLines: 2,
style: Theme.of(context).textTheme.titleMedium?.copyWith(
shadows: shadows,
color: Colors.white.withValues(alpha: 0.75),
),
),

View file

@ -1,18 +1,19 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:fladder/models/items/season_model.dart';
import 'package:fladder/screens/shared/flat_button.dart';
import 'package:fladder/util/adaptive_layout.dart';
import 'package:fladder/util/disable_keypad_focus.dart';
import 'package:fladder/util/fladder_image.dart';
import 'package:fladder/util/item_base_model/item_base_model_extensions.dart';
import 'package:fladder/util/localization_helper.dart';
import 'package:fladder/widgets/shared/clickable_text.dart';
import 'package:fladder/widgets/shared/horizontal_list.dart';
import 'package:fladder/widgets/shared/item_actions.dart';
import 'package:fladder/widgets/shared/modal_bottom_sheet.dart';
import 'package:fladder/widgets/shared/status_card.dart';
import 'package:flutter/material.dart';
import 'package:fladder/models/items/season_model.dart';
import 'package:fladder/screens/shared/flat_button.dart';
import 'package:fladder/widgets/shared/clickable_text.dart';
import 'package:fladder/widgets/shared/horizontal_list.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
class SeasonsRow extends ConsumerWidget {
final EdgeInsets contentPadding;
@ -158,12 +159,6 @@ class SeasonPoster extends ConsumerWidget {
icon: Icon(
Icons.more_vert,
color: Colors.white,
shadows: [
Shadow(color: Colors.black.withValues(alpha: 0.45), blurRadius: 8.0),
const Shadow(color: Colors.black, blurRadius: 16.0),
const Shadow(color: Colors.black, blurRadius: 32.0),
const Shadow(color: Colors.black, blurRadius: 64.0),
],
),
itemBuilder: (context) => season.generateActions(context, ref).popupMenuItems(useIcons: true),
),