Adds checking for trailling commas on the project (#670)

* Testing a new linter option for trailling commas

* Checking trailling commas on linter
This commit is contained in:
Erick
2021-02-18 11:31:45 -03:00
committed by GitHub
parent e712d423dd
commit 19ff80a0eb
17 changed files with 254 additions and 186 deletions

View File

@ -37,24 +37,25 @@ void main() async {
final nineTileBoxImage = await Flame.images.load('nine_tile_box.png');
dashbook.storiesOf('NineTileBox').decorator(CenterDecorator()).add(
'default',
(ctx) => Container(
width: ctx.numberProperty('width', 200),
height: ctx.numberProperty('height', 200),
child: NineTileBox(
image: nineTileBoxImage,
tileSize: 16,
destTileSize: 50,
child: const Center(
child: const Text(
'Cool label',
style: const TextStyle(
color: const Color(0xFFFFFFFF),
),
'default',
(ctx) => Container(
width: ctx.numberProperty('width', 200),
height: ctx.numberProperty('height', 200),
child: NineTileBox(
image: nineTileBoxImage,
tileSize: 16,
destTileSize: 50,
child: const Center(
child: const Text(
'Cool label',
style: const TextStyle(
color: const Color(0xFFFFFFFF),
),
),
),
));
),
),
);
final buttonsImage = await Flame.images.load('buttons.png');
final _buttons = SpriteSheet(