Fixing center repaint

This commit is contained in:
Erick Zanardo
2020-05-25 11:46:46 -03:00
parent 96a6ce31c2
commit a8e0bbd5a1
3 changed files with 4 additions and 3 deletions

View File

@ -67,11 +67,12 @@ void main() async {
dashbook.storiesOf('FlameSpriteWidget').decorator(CenterDecorator()).add(
'default',
(ctx) => Container(
width: ctx.numberProperty('container width', 200),
width: ctx.numberProperty('container width', 400),
height: ctx.numberProperty('container height', 200),
padding: const EdgeInsets.all(20),
child: FlameSpriteWidget(
sprite: shieldSprite,
center: ctx.boolProperty('center', true),
),
),
);