mirror of https://github.com/flutter/pinball.git
parent
068eb12701
commit
075b0a1c1d
@ -1,15 +0,0 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:sandbox/common/common.dart';
|
||||
import 'package:sandbox/stories/baseboard/baseboard_game.dart';
|
||||
|
||||
void addBaseboardStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Baseboard').add(
|
||||
'Basic',
|
||||
(context) => GameWidget(
|
||||
game: BaseboardGame()..trace = context.boolProperty('Trace', true),
|
||||
),
|
||||
codeLink: buildSourceLink('baseboard_game/basic.dart'),
|
||||
info: BaseboardGame.info,
|
||||
);
|
||||
}
|
@ -0,0 +1 @@
|
||||
export 'stories.dart';
|
@ -0,0 +1,34 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:sandbox/common/common.dart';
|
||||
import 'package:sandbox/stories/bottom_group/baseboard_game.dart';
|
||||
import 'package:sandbox/stories/bottom_group/flipper_game.dart';
|
||||
import 'package:sandbox/stories/bottom_group/kicker_game.dart';
|
||||
|
||||
void addBottomGroupStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Bottom Group')
|
||||
..add(
|
||||
'Flipper',
|
||||
(context) => GameWidget(
|
||||
game: FlipperGame()..trace = context.boolProperty('Trace', true),
|
||||
),
|
||||
codeLink: buildSourceLink('bottom_group/flipper.dart'),
|
||||
info: FlipperGame.info,
|
||||
)
|
||||
..add(
|
||||
'Kicker',
|
||||
(context) => GameWidget(
|
||||
game: KickerGame()..trace = context.boolProperty('Trace', true),
|
||||
),
|
||||
codeLink: buildSourceLink('bottom_group/kicker.dart'),
|
||||
info: KickerGame.info,
|
||||
)
|
||||
..add(
|
||||
'Baseboard',
|
||||
(context) => GameWidget(
|
||||
game: BaseboardGame()..trace = context.boolProperty('Trace', true),
|
||||
),
|
||||
codeLink: buildSourceLink('bottom_group/baseboard.dart'),
|
||||
info: BaseboardGame.info,
|
||||
);
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:sandbox/common/common.dart';
|
||||
import 'package:sandbox/stories/flipper/flipper_game.dart';
|
||||
|
||||
void addFlipperStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Flipper').add(
|
||||
'Basic',
|
||||
(context) => GameWidget(
|
||||
game: FlipperGame()..trace = context.boolProperty('Trace', true),
|
||||
),
|
||||
codeLink: buildSourceLink('flipper/basic.dart'),
|
||||
info: FlipperGame.info,
|
||||
);
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
import 'package:sandbox/common/common.dart';
|
||||
import 'package:sandbox/stories/kicker/kicker_game.dart';
|
||||
|
||||
void addKickerStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Kickers').add(
|
||||
'Basic',
|
||||
(context) => GameWidget(
|
||||
game: KickerGame()..trace = context.boolProperty('Trace', true),
|
||||
),
|
||||
codeLink: buildSourceLink('kicker_game/basic.dart'),
|
||||
info: KickerGame.info,
|
||||
);
|
||||
}
|
Loading…
Reference in new issue