mirror of https://github.com/flutter/pinball.git
parent
c11ddaa120
commit
2bda236568
@ -1,13 +1,15 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:sandbox/common/common.dart';
|
||||
import 'package:sandbox/stories/spaceship/basic.dart';
|
||||
import 'package:sandbox/stories/spaceship/basic_spaceship_game.dart';
|
||||
|
||||
void addSpaceshipStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Spaceship').add(
|
||||
'Basic',
|
||||
(context) => GameWidget(game: BasicSpaceship()),
|
||||
(context) => GameWidget(
|
||||
game: BasicSpaceshipGame(),
|
||||
),
|
||||
codeLink: buildSourceLink('spaceship/basic.dart'),
|
||||
info: BasicSpaceship.info,
|
||||
info: BasicSpaceshipGame.info,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in new issue