mirror of https://github.com/flutter/pinball.git
parent
2022151305
commit
a4196e39ec
@ -1,15 +1,11 @@
|
|||||||
import 'package:dashbook/dashbook.dart';
|
import 'package:dashbook/dashbook.dart';
|
||||||
import 'package:flame/game.dart';
|
|
||||||
import 'package:sandbox/common/common.dart';
|
import 'package:sandbox/common/common.dart';
|
||||||
import 'package:sandbox/stories/dino_wall/dino_wall_game.dart';
|
import 'package:sandbox/stories/dino_wall/dino_wall_game.dart';
|
||||||
|
|
||||||
void addDinoWallStories(Dashbook dashbook) {
|
void addDinoWallStories(Dashbook dashbook) {
|
||||||
dashbook.storiesOf('DinoWall').add(
|
dashbook.storiesOf('DinoWall').addGame(
|
||||||
'Basic',
|
title: 'Traced',
|
||||||
(context) => GameWidget(
|
description: DinoWallGame.description,
|
||||||
game: DinoWallGame()..trace = context.boolProperty('Trace', true),
|
gameBuilder: (_) => DinoWallGame(),
|
||||||
),
|
|
||||||
codeLink: buildSourceLink('dino_wall/basic.dart'),
|
|
||||||
info: DinoWallGame.info,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue