File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class ScenarioWidget extends StatelessWidget {
24
24
child: scenario.child,
25
25
);
26
26
27
+ final color = checkeredColor != null ? canvasColor : null ;
27
28
final content = checkeredColor != null
28
29
? Checkered (
29
30
rectSize: checkeredRectSize ?? 5 ,
@@ -34,11 +35,11 @@ class ScenarioWidget extends StatelessWidget {
34
35
35
36
return useMaterial
36
37
? Material (
37
- color: canvasColor ,
38
+ color: color ,
38
39
child: content,
39
40
)
40
41
: Container (
41
- color: canvasColor ,
42
+ color: color ,
42
43
child: content,
43
44
);
44
45
}
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ class ScenarioContainer extends StatelessWidget {
47
47
// Because we may have multiple heroes
48
48
// that share the same tag
49
49
enabled: false ,
50
- child: scenario.child,
50
+ child: ScenarioWidget (
51
+ canvasColor: canvasColor,
52
+ checkeredColor: checkeredColor,
53
+ useMaterial: false ,
54
+ scenario: scenario,
55
+ ),
51
56
),
52
57
),
53
58
),
You can’t perform that action at this time.
0 commit comments