mirror of https://github.com/flutter/pinball.git
parent
052ec65e24
commit
c11ddaa120
@ -1,13 +1,13 @@
|
|||||||
import 'package:dashbook/dashbook.dart';
|
import 'package:dashbook/dashbook.dart';
|
||||||
import 'package:flame/game.dart';
|
import 'package:flame/game.dart';
|
||||||
import 'package:sandbox/common/common.dart';
|
import 'package:sandbox/common/common.dart';
|
||||||
import 'package:sandbox/stories/effects/fire_effect.dart';
|
import 'package:sandbox/stories/effects/fire_effect_game.dart';
|
||||||
|
|
||||||
void addEffectsStories(Dashbook dashbook) {
|
void addEffectsStories(Dashbook dashbook) {
|
||||||
dashbook.storiesOf('Effects').add(
|
dashbook.storiesOf('Effects').add(
|
||||||
'Fire Effect',
|
'Fire Effect',
|
||||||
(context) => GameWidget(game: FireEffectExample()),
|
(context) => GameWidget(game: FireEffectGame()),
|
||||||
codeLink: buildSourceLink('effects/fire_effect.dart'),
|
codeLink: buildSourceLink('effects/fire_effect.dart'),
|
||||||
info: FireEffectExample.info,
|
info: FireEffectGame.info,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue