Unverified Commit 0da6f04f authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Remove references to deprecated `ThemeData.primaryColorBrightness` (#127238)

## Description

Removes references to `ThemeData.primaryColorBrightness`, deprecated in https://github.com/flutter/flutter/pull/93396 and subject to remove now because of our [deprecation policy](https://github.com/flutter/flutter/wiki/Tree-hygiene#deprecations).

## Related PRs
 - https://github.com/flutter/flutter/pull/93396

## Tests
 - Removed unneeded tests, removed references.
parent 0f1a95d1
...@@ -307,8 +307,8 @@ class ThemeData with Diagnosticable { ...@@ -307,8 +307,8 @@ class ThemeData with Diagnosticable {
VisualDensity? visualDensity, VisualDensity? visualDensity,
// COLOR // COLOR
// [colorScheme] is the preferred way to configure colors. The other color // [colorScheme] is the preferred way to configure colors. The other color
// properties (as well as primaryColorBrightness, and primarySwatch) // properties (as well as primarySwatch) will gradually be phased out, see
// will gradually be phased out, see https://github.com/flutter/flutter/issues/91772. // https://github.com/flutter/flutter/issues/91772.
Brightness? brightness, Brightness? brightness,
Color? canvasColor, Color? canvasColor,
Color? cardColor, Color? cardColor,
...@@ -388,11 +388,6 @@ class ThemeData with Diagnosticable { ...@@ -388,11 +388,6 @@ class ThemeData with Diagnosticable {
ToggleButtonsThemeData? toggleButtonsTheme, ToggleButtonsThemeData? toggleButtonsTheme,
TooltipThemeData? tooltipTheme, TooltipThemeData? tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
@Deprecated(
'No longer used by the framework, please remove any reference to it. '
'This feature was deprecated after v2.6.0-11.0.pre.',
)
Brightness? primaryColorBrightness,
@Deprecated( @Deprecated(
'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. ' 'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. '
'This feature was deprecated after v2.13.0-0.0.pre.' 'This feature was deprecated after v2.13.0-0.0.pre.'
...@@ -469,7 +464,6 @@ class ThemeData with Diagnosticable { ...@@ -469,7 +464,6 @@ class ThemeData with Diagnosticable {
// Default some of the color settings to values from the color scheme // Default some of the color settings to values from the color scheme
primaryColor ??= primarySurfaceColor; primaryColor ??= primarySurfaceColor;
primaryColorBrightness = ThemeData.estimateBrightnessForColor(primarySurfaceColor);
canvasColor ??= colorScheme.background; canvasColor ??= colorScheme.background;
scaffoldBackgroundColor ??= colorScheme.background; scaffoldBackgroundColor ??= colorScheme.background;
bottomAppBarColor ??= colorScheme.surface; bottomAppBarColor ??= colorScheme.surface;
...@@ -599,7 +593,6 @@ class ThemeData with Diagnosticable { ...@@ -599,7 +593,6 @@ class ThemeData with Diagnosticable {
tooltipTheme ??= const TooltipThemeData(); tooltipTheme ??= const TooltipThemeData();
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness = estimatedPrimaryColorBrightness;
errorColor ??= Colors.red[700]!; errorColor ??= Colors.red[700]!;
backgroundColor ??= isDark ? Colors.grey[700]! : primarySwatch[200]!; backgroundColor ??= isDark ? Colors.grey[700]! : primarySwatch[200]!;
bottomAppBarColor ??= colorSchemeSeed != null ? colorScheme.surface : isDark ? Colors.grey[800]! : Colors.white; bottomAppBarColor ??= colorSchemeSeed != null ? colorScheme.surface : isDark ? Colors.grey[800]! : Colors.white;
...@@ -696,7 +689,6 @@ class ThemeData with Diagnosticable { ...@@ -696,7 +689,6 @@ class ThemeData with Diagnosticable {
toggleButtonsTheme: toggleButtonsTheme, toggleButtonsTheme: toggleButtonsTheme,
tooltipTheme: tooltipTheme, tooltipTheme: tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness: primaryColorBrightness,
androidOverscrollIndicator: androidOverscrollIndicator, androidOverscrollIndicator: androidOverscrollIndicator,
toggleableActiveColor: toggleableActiveColor, toggleableActiveColor: toggleableActiveColor,
selectedRowColor: selectedRowColor, selectedRowColor: selectedRowColor,
...@@ -808,11 +800,6 @@ class ThemeData with Diagnosticable { ...@@ -808,11 +800,6 @@ class ThemeData with Diagnosticable {
required this.toggleButtonsTheme, required this.toggleButtonsTheme,
required this.tooltipTheme, required this.tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
@Deprecated(
'No longer used by the framework, please remove any reference to it. '
'This feature was deprecated after v2.6.0-11.0.pre.',
)
Brightness? primaryColorBrightness,
@Deprecated( @Deprecated(
'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. ' 'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. '
'This feature was deprecated after v2.13.0-0.0.pre.' 'This feature was deprecated after v2.13.0-0.0.pre.'
...@@ -848,7 +835,6 @@ class ThemeData with Diagnosticable { ...@@ -848,7 +835,6 @@ class ThemeData with Diagnosticable {
}) : // DEPRECATED (newest deprecations at the bottom) }) : // DEPRECATED (newest deprecations at the bottom)
// should not be `required`, use getter pattern to avoid breakages. // should not be `required`, use getter pattern to avoid breakages.
_primaryColorBrightness = primaryColorBrightness,
_toggleableActiveColor = toggleableActiveColor, _toggleableActiveColor = toggleableActiveColor,
_selectedRowColor = selectedRowColor, _selectedRowColor = selectedRowColor,
_errorColor = errorColor, _errorColor = errorColor,
...@@ -856,7 +842,6 @@ class ThemeData with Diagnosticable { ...@@ -856,7 +842,6 @@ class ThemeData with Diagnosticable {
_bottomAppBarColor = bottomAppBarColor, _bottomAppBarColor = bottomAppBarColor,
assert(toggleableActiveColor != null), assert(toggleableActiveColor != null),
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
assert(primaryColorBrightness != null),
assert(errorColor != null), assert(errorColor != null),
assert(backgroundColor != null); assert(backgroundColor != null);
...@@ -903,7 +888,6 @@ class ThemeData with Diagnosticable { ...@@ -903,7 +888,6 @@ class ThemeData with Diagnosticable {
colorScheme: colorScheme, colorScheme: colorScheme,
brightness: colorScheme.brightness, brightness: colorScheme.brightness,
primaryColor: primarySurfaceColor, primaryColor: primarySurfaceColor,
primaryColorBrightness: ThemeData.estimateBrightnessForColor(primarySurfaceColor),
canvasColor: colorScheme.background, canvasColor: colorScheme.background,
scaffoldBackgroundColor: colorScheme.background, scaffoldBackgroundColor: colorScheme.background,
bottomAppBarColor: colorScheme.surface, bottomAppBarColor: colorScheme.surface,
...@@ -1524,22 +1508,6 @@ class ThemeData with Diagnosticable { ...@@ -1524,22 +1508,6 @@ class ThemeData with Diagnosticable {
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
/// Obsolete property that was originally used to determine the color
/// of text and icons placed on top of the primary color (e.g. toolbar text).
///
/// The material library no longer uses this property. The [appBarTheme] can
/// be used to configure the appearance of [AppBar]s. The appearance of
/// Keyboards for [TextField]s now uses the overall theme's
/// [ThemeData.brightness] and can also be customized with
/// [TextField.keyboardAppearance]. The brightness of any color can be found
/// with [ThemeData.estimateBrightnessForColor].
@Deprecated(
'No longer used by the framework, please remove any reference to it. '
'This feature was deprecated after v2.6.0-11.0.pre.',
)
Brightness get primaryColorBrightness => _primaryColorBrightness!;
final Brightness? _primaryColorBrightness;
/// Specifies which overscroll indicator to use on [TargetPlatform.android]. /// Specifies which overscroll indicator to use on [TargetPlatform.android].
/// ///
/// When null, the default value of /// When null, the default value of
...@@ -1696,11 +1664,6 @@ class ThemeData with Diagnosticable { ...@@ -1696,11 +1664,6 @@ class ThemeData with Diagnosticable {
ToggleButtonsThemeData? toggleButtonsTheme, ToggleButtonsThemeData? toggleButtonsTheme,
TooltipThemeData? tooltipTheme, TooltipThemeData? tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
@Deprecated(
'No longer used by the framework, please remove any reference to it. '
'This feature was deprecated after v2.6.0-11.0.pre.',
)
Brightness? primaryColorBrightness,
@Deprecated( @Deprecated(
'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. ' 'Use ThemeData.useMaterial3 or override ScrollBehavior.buildOverscrollIndicator. '
'This feature was deprecated after v2.13.0-0.0.pre.' 'This feature was deprecated after v2.13.0-0.0.pre.'
...@@ -1827,7 +1790,6 @@ class ThemeData with Diagnosticable { ...@@ -1827,7 +1790,6 @@ class ThemeData with Diagnosticable {
toggleButtonsTheme: toggleButtonsTheme ?? this.toggleButtonsTheme, toggleButtonsTheme: toggleButtonsTheme ?? this.toggleButtonsTheme,
tooltipTheme: tooltipTheme ?? this.tooltipTheme, tooltipTheme: tooltipTheme ?? this.tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness: primaryColorBrightness ?? _primaryColorBrightness,
androidOverscrollIndicator: androidOverscrollIndicator ?? this.androidOverscrollIndicator, androidOverscrollIndicator: androidOverscrollIndicator ?? this.androidOverscrollIndicator,
toggleableActiveColor: toggleableActiveColor ?? _toggleableActiveColor, toggleableActiveColor: toggleableActiveColor ?? _toggleableActiveColor,
selectedRowColor: selectedRowColor ?? _selectedRowColor, selectedRowColor: selectedRowColor ?? _selectedRowColor,
...@@ -2022,7 +1984,6 @@ class ThemeData with Diagnosticable { ...@@ -2022,7 +1984,6 @@ class ThemeData with Diagnosticable {
toggleButtonsTheme: ToggleButtonsThemeData.lerp(a.toggleButtonsTheme, b.toggleButtonsTheme, t)!, toggleButtonsTheme: ToggleButtonsThemeData.lerp(a.toggleButtonsTheme, b.toggleButtonsTheme, t)!,
tooltipTheme: TooltipThemeData.lerp(a.tooltipTheme, b.tooltipTheme, t)!, tooltipTheme: TooltipThemeData.lerp(a.tooltipTheme, b.tooltipTheme, t)!,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness: t < 0.5 ? a.primaryColorBrightness : b.primaryColorBrightness,
androidOverscrollIndicator:t < 0.5 ? a.androidOverscrollIndicator : b.androidOverscrollIndicator, androidOverscrollIndicator:t < 0.5 ? a.androidOverscrollIndicator : b.androidOverscrollIndicator,
toggleableActiveColor: Color.lerp(a.toggleableActiveColor, b.toggleableActiveColor, t), toggleableActiveColor: Color.lerp(a.toggleableActiveColor, b.toggleableActiveColor, t),
selectedRowColor: Color.lerp(a.selectedRowColor, b.selectedRowColor, t), selectedRowColor: Color.lerp(a.selectedRowColor, b.selectedRowColor, t),
...@@ -2129,7 +2090,6 @@ class ThemeData with Diagnosticable { ...@@ -2129,7 +2090,6 @@ class ThemeData with Diagnosticable {
other.toggleButtonsTheme == toggleButtonsTheme && other.toggleButtonsTheme == toggleButtonsTheme &&
other.tooltipTheme == tooltipTheme && other.tooltipTheme == tooltipTheme &&
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
other.primaryColorBrightness == primaryColorBrightness &&
other.androidOverscrollIndicator == androidOverscrollIndicator && other.androidOverscrollIndicator == androidOverscrollIndicator &&
other.toggleableActiveColor == toggleableActiveColor && other.toggleableActiveColor == toggleableActiveColor &&
other.selectedRowColor == selectedRowColor && other.selectedRowColor == selectedRowColor &&
...@@ -2233,7 +2193,6 @@ class ThemeData with Diagnosticable { ...@@ -2233,7 +2193,6 @@ class ThemeData with Diagnosticable {
toggleButtonsTheme, toggleButtonsTheme,
tooltipTheme, tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness,
androidOverscrollIndicator, androidOverscrollIndicator,
toggleableActiveColor, toggleableActiveColor,
selectedRowColor, selectedRowColor,
...@@ -2339,7 +2298,6 @@ class ThemeData with Diagnosticable { ...@@ -2339,7 +2298,6 @@ class ThemeData with Diagnosticable {
properties.add(DiagnosticsProperty<ToggleButtonsThemeData>('toggleButtonsTheme', toggleButtonsTheme, level: DiagnosticLevel.debug)); properties.add(DiagnosticsProperty<ToggleButtonsThemeData>('toggleButtonsTheme', toggleButtonsTheme, level: DiagnosticLevel.debug));
properties.add(DiagnosticsProperty<TooltipThemeData>('tooltipTheme', tooltipTheme, level: DiagnosticLevel.debug)); properties.add(DiagnosticsProperty<TooltipThemeData>('tooltipTheme', tooltipTheme, level: DiagnosticLevel.debug));
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
properties.add(EnumProperty<Brightness>('primaryColorBrightness', primaryColorBrightness, defaultValue: defaultData.primaryColorBrightness, level: DiagnosticLevel.debug));
properties.add(EnumProperty<AndroidOverscrollIndicator>('androidOverscrollIndicator', androidOverscrollIndicator, defaultValue: null, level: DiagnosticLevel.debug)); properties.add(EnumProperty<AndroidOverscrollIndicator>('androidOverscrollIndicator', androidOverscrollIndicator, defaultValue: null, level: DiagnosticLevel.debug));
properties.add(ColorProperty('toggleableActiveColor', toggleableActiveColor, defaultValue: defaultData.toggleableActiveColor, level: DiagnosticLevel.debug)); properties.add(ColorProperty('toggleableActiveColor', toggleableActiveColor, defaultValue: defaultData.toggleableActiveColor, level: DiagnosticLevel.debug));
properties.add(ColorProperty('selectedRowColor', selectedRowColor, defaultValue: defaultData.selectedRowColor, level: DiagnosticLevel.debug)); properties.add(ColorProperty('selectedRowColor', selectedRowColor, defaultValue: defaultData.selectedRowColor, level: DiagnosticLevel.debug));
......
...@@ -2455,7 +2455,6 @@ void main() { ...@@ -2455,7 +2455,6 @@ void main() {
), ),
)); ));
expect(darkTheme.primaryColorBrightness, Brightness.dark);
expect(darkTheme.colorScheme.brightness, Brightness.dark); expect(darkTheme.colorScheme.brightness, Brightness.dark);
expect(SystemChrome.latestStyle, const SystemUiOverlayStyle( expect(SystemChrome.latestStyle, const SystemUiOverlayStyle(
statusBarBrightness: Brightness.dark, statusBarBrightness: Brightness.dark,
...@@ -2476,7 +2475,6 @@ void main() { ...@@ -2476,7 +2475,6 @@ void main() {
), ),
); );
expect(lightTheme.primaryColorBrightness, Brightness.light);
expect(lightTheme.colorScheme.brightness, Brightness.light); expect(lightTheme.colorScheme.brightness, Brightness.light);
expect(SystemChrome.latestStyle, const SystemUiOverlayStyle( expect(SystemChrome.latestStyle, const SystemUiOverlayStyle(
statusBarBrightness: Brightness.light, statusBarBrightness: Brightness.light,
......
...@@ -286,10 +286,7 @@ void main() { ...@@ -286,10 +286,7 @@ void main() {
// is turned on by default, these tests can be removed. // is turned on by default, these tests can be removed.
testWidgets('CircleAvatar default colors with light theme', (WidgetTester tester) async { testWidgets('CircleAvatar default colors with light theme', (WidgetTester tester) async {
final ThemeData theme = ThemeData( final ThemeData theme = ThemeData(primaryColor: Colors.grey.shade100);
primaryColor: Colors.grey.shade100,
primaryColorBrightness: Brightness.light,
);
await tester.pumpWidget( await tester.pumpWidget(
wrap( wrap(
child: Theme( child: Theme(
...@@ -311,10 +308,7 @@ void main() { ...@@ -311,10 +308,7 @@ void main() {
}); });
testWidgets('CircleAvatar default colors with dark theme', (WidgetTester tester) async { testWidgets('CircleAvatar default colors with dark theme', (WidgetTester tester) async {
final ThemeData theme = ThemeData( final ThemeData theme = ThemeData(primaryColor: Colors.grey.shade800);
primaryColor: Colors.grey.shade800,
primaryColorBrightness: Brightness.dark,
);
await tester.pumpWidget( await tester.pumpWidget(
wrap( wrap(
child: Theme( child: Theme(
......
...@@ -445,7 +445,6 @@ void main() { ...@@ -445,7 +445,6 @@ void main() {
final ThemeData theme = ThemeData.light().copyWith( final ThemeData theme = ThemeData.light().copyWith(
visualDensity: VisualDensity.standard, visualDensity: VisualDensity.standard,
primaryColor: Colors.black, primaryColor: Colors.black,
primaryColorBrightness: Brightness.dark,
primaryColorLight: Colors.black, primaryColorLight: Colors.black,
primaryColorDark: Colors.black, primaryColorDark: Colors.black,
canvasColor: Colors.black, canvasColor: Colors.black,
......
...@@ -125,19 +125,6 @@ void main() { ...@@ -125,19 +125,6 @@ void main() {
expect(ThemeData.estimateBrightnessForColor(Colors.indigo), equals(Brightness.dark)); expect(ThemeData.estimateBrightnessForColor(Colors.indigo), equals(Brightness.dark));
}); });
test('Can estimate brightness - indirectly', () {
expect(ThemeData(primaryColor: Colors.white).primaryColorBrightness, equals(Brightness.light));
expect(ThemeData(primaryColor: Colors.black).primaryColorBrightness, equals(Brightness.dark));
expect(ThemeData(primaryColor: Colors.blue).primaryColorBrightness, equals(Brightness.dark));
expect(ThemeData(primaryColor: Colors.yellow).primaryColorBrightness, equals(Brightness.light));
expect(ThemeData(primaryColor: Colors.deepOrange).primaryColorBrightness, equals(Brightness.dark));
expect(ThemeData(primaryColor: Colors.orange).primaryColorBrightness, equals(Brightness.light));
expect(ThemeData(primaryColor: Colors.lime).primaryColorBrightness, equals(Brightness.light));
expect(ThemeData(primaryColor: Colors.grey).primaryColorBrightness, equals(Brightness.light));
expect(ThemeData(primaryColor: Colors.teal).primaryColorBrightness, equals(Brightness.dark));
expect(ThemeData(primaryColor: Colors.indigo).primaryColorBrightness, equals(Brightness.dark));
});
test('cursorColor', () { test('cursorColor', () {
expect(const TextSelectionThemeData(cursorColor: Colors.red).cursorColor, Colors.red); expect(const TextSelectionThemeData(cursorColor: Colors.red).cursorColor, Colors.red);
}); });
...@@ -182,7 +169,6 @@ void main() { ...@@ -182,7 +169,6 @@ void main() {
expect(theme.colorScheme.brightness, Brightness.light); expect(theme.colorScheme.brightness, Brightness.light);
expect(theme.primaryColor, theme.colorScheme.primary); expect(theme.primaryColor, theme.colorScheme.primary);
expect(theme.primaryColorBrightness, Brightness.dark);
expect(theme.canvasColor, theme.colorScheme.background); expect(theme.canvasColor, theme.colorScheme.background);
expect(theme.scaffoldBackgroundColor, theme.colorScheme.background); expect(theme.scaffoldBackgroundColor, theme.colorScheme.background);
expect(theme.bottomAppBarColor, theme.colorScheme.surface); expect(theme.bottomAppBarColor, theme.colorScheme.surface);
...@@ -232,7 +218,6 @@ void main() { ...@@ -232,7 +218,6 @@ void main() {
expect(theme.colorScheme.brightness, Brightness.dark); expect(theme.colorScheme.brightness, Brightness.dark);
expect(theme.primaryColor, theme.colorScheme.surface); expect(theme.primaryColor, theme.colorScheme.surface);
expect(theme.primaryColorBrightness, Brightness.dark);
expect(theme.canvasColor, theme.colorScheme.background); expect(theme.canvasColor, theme.colorScheme.background);
expect(theme.scaffoldBackgroundColor, theme.colorScheme.background); expect(theme.scaffoldBackgroundColor, theme.colorScheme.background);
expect(theme.bottomAppBarColor, theme.colorScheme.surface); expect(theme.bottomAppBarColor, theme.colorScheme.surface);
...@@ -279,7 +264,6 @@ void main() { ...@@ -279,7 +264,6 @@ void main() {
expect(theme.colorScheme.brightness, Brightness.light); expect(theme.colorScheme.brightness, Brightness.light);
expect(theme.primaryColor, theme.colorScheme.primary); expect(theme.primaryColor, theme.colorScheme.primary);
expect(theme.primaryColorBrightness, Brightness.dark);
expect(theme.canvasColor, theme.colorScheme.background); expect(theme.canvasColor, theme.colorScheme.background);
expect(theme.scaffoldBackgroundColor, theme.colorScheme.background); expect(theme.scaffoldBackgroundColor, theme.colorScheme.background);
expect(theme.bottomAppBarColor, theme.colorScheme.surface); expect(theme.bottomAppBarColor, theme.colorScheme.surface);
...@@ -327,7 +311,6 @@ void main() { ...@@ -327,7 +311,6 @@ void main() {
expect(theme.colorScheme.brightness, Brightness.light); expect(theme.colorScheme.brightness, Brightness.light);
expect(theme.primaryColor, theme.colorScheme.primary); expect(theme.primaryColor, theme.colorScheme.primary);
expect(theme.primaryColorBrightness, Brightness.dark);
expect(theme.canvasColor, theme.colorScheme.background); expect(theme.canvasColor, theme.colorScheme.background);
expect(theme.scaffoldBackgroundColor, theme.colorScheme.background); expect(theme.scaffoldBackgroundColor, theme.colorScheme.background);
expect(theme.bottomAppBarColor, theme.colorScheme.surface); expect(theme.bottomAppBarColor, theme.colorScheme.surface);
...@@ -375,7 +358,6 @@ void main() { ...@@ -375,7 +358,6 @@ void main() {
expect(theme.colorScheme.brightness, Brightness.dark); expect(theme.colorScheme.brightness, Brightness.dark);
expect(theme.primaryColor, theme.colorScheme.surface); expect(theme.primaryColor, theme.colorScheme.surface);
expect(theme.primaryColorBrightness, Brightness.dark);
expect(theme.canvasColor, theme.colorScheme.background); expect(theme.canvasColor, theme.colorScheme.background);
expect(theme.scaffoldBackgroundColor, theme.colorScheme.background); expect(theme.scaffoldBackgroundColor, theme.colorScheme.background);
expect(theme.bottomAppBarColor, theme.colorScheme.surface); expect(theme.bottomAppBarColor, theme.colorScheme.surface);
...@@ -826,7 +808,6 @@ void main() { ...@@ -826,7 +808,6 @@ void main() {
toggleButtonsTheme: const ToggleButtonsThemeData(textStyle: TextStyle(color: Colors.black)), toggleButtonsTheme: const ToggleButtonsThemeData(textStyle: TextStyle(color: Colors.black)),
tooltipTheme: const TooltipThemeData(height: 100), tooltipTheme: const TooltipThemeData(height: 100),
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness: Brightness.dark,
androidOverscrollIndicator: AndroidOverscrollIndicator.glow, androidOverscrollIndicator: AndroidOverscrollIndicator.glow,
toggleableActiveColor: Colors.black, toggleableActiveColor: Colors.black,
selectedRowColor: Colors.black, selectedRowColor: Colors.black,
...@@ -946,7 +927,6 @@ void main() { ...@@ -946,7 +927,6 @@ void main() {
tooltipTheme: const TooltipThemeData(height: 100), tooltipTheme: const TooltipThemeData(height: 100),
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness: Brightness.light,
androidOverscrollIndicator: AndroidOverscrollIndicator.stretch, androidOverscrollIndicator: AndroidOverscrollIndicator.stretch,
toggleableActiveColor: Colors.white, toggleableActiveColor: Colors.white,
selectedRowColor: Colors.white, selectedRowColor: Colors.white,
...@@ -1049,7 +1029,6 @@ void main() { ...@@ -1049,7 +1029,6 @@ void main() {
tooltipTheme: otherTheme.tooltipTheme, tooltipTheme: otherTheme.tooltipTheme,
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
primaryColorBrightness: otherTheme.primaryColorBrightness,
androidOverscrollIndicator: otherTheme.androidOverscrollIndicator, androidOverscrollIndicator: otherTheme.androidOverscrollIndicator,
toggleableActiveColor: otherTheme.toggleableActiveColor, toggleableActiveColor: otherTheme.toggleableActiveColor,
selectedRowColor: otherTheme.selectedRowColor, selectedRowColor: otherTheme.selectedRowColor,
...@@ -1153,7 +1132,6 @@ void main() { ...@@ -1153,7 +1132,6 @@ void main() {
expect(themeDataCopy.tooltipTheme, equals(otherTheme.tooltipTheme)); expect(themeDataCopy.tooltipTheme, equals(otherTheme.tooltipTheme));
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
expect(themeDataCopy.primaryColorBrightness, equals(otherTheme.primaryColorBrightness));
expect(themeDataCopy.androidOverscrollIndicator, equals(otherTheme.androidOverscrollIndicator)); expect(themeDataCopy.androidOverscrollIndicator, equals(otherTheme.androidOverscrollIndicator));
expect(themeDataCopy.toggleableActiveColor, equals(otherTheme.toggleableActiveColor)); expect(themeDataCopy.toggleableActiveColor, equals(otherTheme.toggleableActiveColor));
expect(themeDataCopy.selectedRowColor, equals(otherTheme.selectedRowColor)); expect(themeDataCopy.selectedRowColor, equals(otherTheme.selectedRowColor));
...@@ -1288,7 +1266,6 @@ void main() { ...@@ -1288,7 +1266,6 @@ void main() {
'toggleButtonsTheme', 'toggleButtonsTheme',
'tooltipTheme', 'tooltipTheme',
// DEPRECATED (newest deprecations at the bottom) // DEPRECATED (newest deprecations at the bottom)
'primaryColorBrightness',
'androidOverscrollIndicator', 'androidOverscrollIndicator',
'toggleableActiveColor', 'toggleableActiveColor',
'selectedRowColor', 'selectedRowColor',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment