Skip to content

Commit c5f68ec

Browse files
committed
fix: show checked
1 parent 1c79ddf commit c5f68ec

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

playbook/lib/src/scenario_widget.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ScenarioWidget extends StatelessWidget {
2424
child: scenario.child,
2525
);
2626

27+
final color = checkeredColor != null ? canvasColor : null;
2728
final content = checkeredColor != null
2829
? Checkered(
2930
rectSize: checkeredRectSize ?? 5,
@@ -34,11 +35,11 @@ class ScenarioWidget extends StatelessWidget {
3435

3536
return useMaterial
3637
? Material(
37-
color: canvasColor,
38+
color: color,
3839
child: content,
3940
)
4041
: Container(
41-
color: canvasColor,
42+
color: color,
4243
child: content,
4344
);
4445
}

playbook_ui/lib/src/scenario_container.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ class ScenarioContainer extends StatelessWidget {
4747
// Because we may have multiple heroes
4848
// that share the same tag
4949
enabled: false,
50-
child: scenario.child,
50+
child: ScenarioWidget(
51+
canvasColor: canvasColor,
52+
checkeredColor: checkeredColor,
53+
useMaterial: false,
54+
scenario: scenario,
55+
),
5156
),
5257
),
5358
),

0 commit comments

Comments
 (0)