Preview quick switch styles with the real local workspace

This commit is contained in:
2026-11-07 19:40:57 +00:00
parent 9a252b67af
commit 53a9cc78a3
7 changed files with 441 additions and 11 deletions
@@ -187,7 +187,7 @@ void main() {
selected,
reason: '$destination: $rowKey after opening $key',
);
// Every list uses the shared row and its highlight.
// Every list retains shared row semantics; features may supply their own fill.
final context = tester.element(row);
expect(tester.widget<AppListRow>(row).selected, selected);
final surface = find.descendant(
@@ -199,10 +199,11 @@ void main() {
? tester.widget<ColoredBox>(surface).color
: tester.widget<Material>(surface).color,
selected
? AppListRow.selectedColor(
context,
cupertino: cupertino,
)
? tester.widget<AppListRow>(row).selectedFill ??
AppListRow.selectedColor(
context,
cupertino: cupertino,
)
: const Color(0x00000000),
);
}