mirror of
https://github.com/austinried/subtracks.git
synced 2026-03-28 23:32:42 +01:00
chore: upgrade to Flutter 3.24.5
At the time of writing the latest Flutter version.
This commit is contained in:
@@ -87,7 +87,6 @@ ColorTheme _colorTheme(_ColorThemeRef ref, Palette palette) {
|
||||
final colorScheme = ColorScheme.fromSeed(
|
||||
brightness: Brightness.dark,
|
||||
seedColor: background?.color ?? Colors.purple[800]!,
|
||||
background: background?.color,
|
||||
primaryContainer: primary?.color,
|
||||
onPrimaryContainer: primary?.bodyTextColor,
|
||||
secondaryContainer: secondary?.color,
|
||||
@@ -96,8 +95,8 @@ ColorTheme _colorTheme(_ColorThemeRef ref, Palette palette) {
|
||||
surfaceTint: vibrant?.color,
|
||||
);
|
||||
|
||||
final hsv = HSVColor.fromColor(colorScheme.background);
|
||||
final hsl = HSLColor.fromColor(colorScheme.background);
|
||||
final hsv = HSVColor.fromColor(colorScheme.surface);
|
||||
final hsl = HSLColor.fromColor(colorScheme.surface);
|
||||
|
||||
return base.copyWith(
|
||||
theme: ThemeData(
|
||||
@@ -106,7 +105,7 @@ ColorTheme _colorTheme(_ColorThemeRef ref, Palette palette) {
|
||||
brightness: base.theme.brightness,
|
||||
cardTheme: base.theme.cardTheme,
|
||||
),
|
||||
gradientHigh: colorScheme.background,
|
||||
gradientHigh: colorScheme.surface,
|
||||
darkBackground: hsv.withValue(kDarkBackgroundValue).toColor(),
|
||||
darkerBackground: hsl.withLightness(kDarkerBackgroundLightness).toColor(),
|
||||
onDarkerBackground:
|
||||
@@ -128,13 +127,13 @@ ColorTheme baseTheme(BaseThemeRef ref) {
|
||||
),
|
||||
);
|
||||
|
||||
final hsv = HSVColor.fromColor(theme.colorScheme.background);
|
||||
final hsl = HSLColor.fromColor(theme.colorScheme.background);
|
||||
final hsv = HSVColor.fromColor(theme.colorScheme.surface);
|
||||
final hsl = HSLColor.fromColor(theme.colorScheme.surface);
|
||||
|
||||
return ColorTheme(
|
||||
theme: theme,
|
||||
gradientHigh: theme.colorScheme.background,
|
||||
gradientLow: HSLColor.fromColor(theme.colorScheme.background)
|
||||
gradientHigh: theme.colorScheme.surface,
|
||||
gradientLow: HSLColor.fromColor(theme.colorScheme.surface)
|
||||
.withLightness(0.06)
|
||||
.toColor(),
|
||||
darkBackground: hsv.withValue(kDarkBackgroundValue).toColor(),
|
||||
|
||||
Reference in New Issue
Block a user