Reland - Introduce tone-based surfaces and accent color add-ons - Part 2 (#144001)

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:
Qun Cheng
2024-02-27 20:21:14 +00:00
committed by GitHub
parent 609d30fe58
commit 871d59221c
181 changed files with 2519 additions and 998 deletions

View File

@@ -25,7 +25,7 @@ void main() {
TextButton thirdButton = findButton('Orange');
const Color selectedColor = Color(0xffef9a9a);
const Color unselectedColor = Color(0x00fffbfe);
const Color unselectedColor = Color(0x00fef7ff);
/// First button is selected.
expect(firstButton.style!.backgroundColor!.resolve(enabled), selectedColor);
@@ -63,7 +63,7 @@ void main() {
TextButton thirdButton = findButton('Carrots');
const Color selectedColor = Color(0xffa5d6a7);
const Color unselectedColor = Color(0x00fffbfe);
const Color unselectedColor = Color(0x00fef7ff);
/// Second button is selected.
expect(firstButton.style!.backgroundColor!.resolve(enabled), unselectedColor);
@@ -102,7 +102,7 @@ void main() {
TextButton thirdButton = findButton(Icons.ac_unit);
const Color selectedColor = Color(0xff90caf9);
const Color unselectedColor = Color(0x00fffbfe);
const Color unselectedColor = Color(0x00fef7ff);
/// Third button is selected.