Preview quick switch styles with the real local workspace
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user