mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
24 lines
630 B
Dart
24 lines
630 B
Dart
import 'package:dashbook/dashbook.dart';
|
|
|
|
import 'package:examples/commons/commons.dart';
|
|
import 'package:examples/stories/image/resize.dart';
|
|
import 'package:flame/game.dart';
|
|
|
|
void addImageStories(Dashbook dashbook) {
|
|
dashbook.storiesOf('Image')
|
|
..decorator(CenterDecorator())
|
|
..add(
|
|
'resize',
|
|
(context) => GameWidget(
|
|
game: ImageResizeExample(
|
|
Vector2(
|
|
context.numberProperty('width', 200),
|
|
context.numberProperty('height', 300),
|
|
),
|
|
),
|
|
),
|
|
codeLink: baseLink('image/resize.dart'),
|
|
info: ImageResizeExample.description,
|
|
);
|
|
}
|