mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Linting
This commit is contained in:
@ -13,11 +13,11 @@ void main() async {
|
||||
await Flame.images.load('buttons.png');
|
||||
|
||||
final _buttons = SpriteSheet(
|
||||
imageName: 'buttons.png',
|
||||
textureHeight: 20,
|
||||
textureWidth: 60,
|
||||
columns: 1,
|
||||
rows: 2,
|
||||
imageName: 'buttons.png',
|
||||
textureHeight: 20,
|
||||
textureWidth: 60,
|
||||
columns: 1,
|
||||
rows: 2,
|
||||
);
|
||||
|
||||
final dashbook = Dashbook();
|
||||
@ -45,18 +45,18 @@ void main() async {
|
||||
dashbook.storiesOf('SpriteButton').decorator(CenterDecorator()).add(
|
||||
'default',
|
||||
(ctx) => Container(
|
||||
padding: const EdgeInsets.all(20),
|
||||
child: SpriteButton(
|
||||
onPressed: () {
|
||||
print('Pressed');
|
||||
},
|
||||
label: const Text(
|
||||
'Sprite Button',
|
||||
style: const TextStyle(color: const Color(0xFF5D275D)),
|
||||
),
|
||||
sprite: _buttons.getSprite(0, 0),
|
||||
pressedSprite: _buttons.getSprite(1, 0),
|
||||
padding: const EdgeInsets.all(20),
|
||||
child: SpriteButton(
|
||||
onPressed: () {
|
||||
print('Pressed');
|
||||
},
|
||||
label: const Text(
|
||||
'Sprite Button',
|
||||
style: const TextStyle(color: const Color(0xFF5D275D)),
|
||||
),
|
||||
sprite: _buttons.getSprite(0, 0),
|
||||
pressedSprite: _buttons.getSprite(1, 0),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user