Reverts "Reland - Introduce tone-based surfaces and accent color add-ons - Part 2 (#144001)" (#144262)
Reverts flutter/flutter#144001
Initiated by: Piinks
Reason for reverting: Failing goldens at the tip of tree
Original PR Author: QuncCccccc
Reviewed By: {HansMuller}
This change reverts the following previous change:
Original Description:
Reverts flutter/flutter#143973
This is a reland for #138521 with an updated g3fix(cl/605555997). Local test: cl/609608958.
This commit is contained in:
@@ -202,7 +202,7 @@ class KeyPad extends StatelessWidget {
|
||||
),
|
||||
Expanded(
|
||||
child: Material(
|
||||
color: themeData.colorScheme.surface,
|
||||
color: themeData.colorScheme.background,
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
CalcKey('\u232B', calcState!.handleDelTap),
|
||||
|
||||
@@ -203,7 +203,7 @@ class _ChipDemoState extends State<ChipDemo> {
|
||||
assert(name.length > 1);
|
||||
final int hash = name.hashCode & 0xffff;
|
||||
final double hue = (360.0 * hash / (1 << 15)) % 360.0;
|
||||
final double themeValue = HSVColor.fromColor(theme.colorScheme.surface).value;
|
||||
final double themeValue = HSVColor.fromColor(theme.colorScheme.background).value;
|
||||
return HSVColor.fromAHSV(1.0, hue, 0.4, themeValue).toColor();
|
||||
}
|
||||
|
||||
|
||||
@@ -114,10 +114,12 @@ const ColorScheme kShrineColorScheme = ColorScheme(
|
||||
primary: kShrinePink100,
|
||||
secondary: kShrinePink50,
|
||||
surface: kShrineSurfaceWhite,
|
||||
background: kShrineBackgroundWhite,
|
||||
error: kShrineErrorRed,
|
||||
onPrimary: kShrineBrown900,
|
||||
onSecondary: kShrineBrown900,
|
||||
onSurface: kShrineBrown900,
|
||||
onBackground: kShrineBrown900,
|
||||
onError: kShrineSurfaceWhite,
|
||||
brightness: Brightness.light,
|
||||
);
|
||||
|
||||
@@ -23,7 +23,7 @@ ThemeData _buildDarkTheme() {
|
||||
secondary: secondaryColor,
|
||||
onPrimary: Colors.white,
|
||||
error: const Color(0xFFB00020),
|
||||
surface: const Color(0xFF202124),
|
||||
background: const Color(0xFF202124),
|
||||
);
|
||||
final ThemeData base = ThemeData(
|
||||
useMaterial3: false,
|
||||
|
||||
Reference in New Issue
Block a user