🏷 Backport some code improvements from the null-safety branch (#603)

This commit is contained in:
Serge Matveenko
2021-01-09 05:25:29 +03:00
committed by GitHub
parent 5b1988ca36
commit 16eaef3bb1
28 changed files with 168 additions and 149 deletions

View File

@ -108,8 +108,9 @@ void main() async {
child: SpriteWidget(
sprite: shieldSprite,
anchor: parseAnchor(
ctx.listProperty('anchor', 'Anchor.center', anchorOptions),
),
ctx.listProperty('anchor', 'Anchor.center', anchorOptions),
) ??
Anchor.topLeft,
),
),
);
@ -134,8 +135,9 @@ void main() async {
animation: _animation,
playing: ctx.boolProperty('playing', true),
anchor: parseAnchor(
ctx.listProperty('anchor', 'Anchor.center', anchorOptions),
),
ctx.listProperty('anchor', 'Anchor.center', anchorOptions),
) ??
Anchor.topLeft,
),
),
);