refactor: renamed .info to .description

pull/227/head
alestiago 3 years ago
parent e6ac8d89d8
commit 82f26ef665

@ -7,7 +7,7 @@ import 'package:sandbox/stories/ball/basic_ball_game.dart';
class AlienBumperAGame extends BallGame { class AlienBumperAGame extends BallGame {
AlienBumperAGame() : super(color: const Color(0xFF0000FF)); AlienBumperAGame() : super(color: const Color(0xFF0000FF));
static const info = ''' static const description = '''
Shows how a AlienBumperA is rendered. Shows how a AlienBumperA is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -7,7 +7,7 @@ import 'package:sandbox/stories/ball/basic_ball_game.dart';
class AlienBumperBGame extends BallGame { class AlienBumperBGame extends BallGame {
AlienBumperBGame() : super(color: const Color(0xFF0000FF)); AlienBumperBGame() : super(color: const Color(0xFF0000FF));
static const info = ''' static const description = '''
Shows how a AlienBumperB is rendered. Shows how a AlienBumperB is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -7,12 +7,12 @@ void addAlienZoneStories(Dashbook dashbook) {
dashbook.storiesOf('Alien Zone') dashbook.storiesOf('Alien Zone')
..addGame( ..addGame(
title: 'Alien Bumper A', title: 'Alien Bumper A',
description: AlienBumperAGame.info, description: AlienBumperAGame.description,
gameBuilder: (_) => AlienBumperAGame(), gameBuilder: (_) => AlienBumperAGame(),
) )
..addGame( ..addGame(
title: 'Alien Bumper B', title: 'Alien Bumper B',
description: AlienBumperBGame.info, description: AlienBumperBGame.description,
gameBuilder: (_) => AlienBumperBGame(), gameBuilder: (_) => AlienBumperBGame(),
); );
} }

@ -11,7 +11,7 @@ class BackboardGameOverGame extends AssetsGame
fileNames: characterIconPaths.values.toList(), fileNames: characterIconPaths.values.toList(),
); );
static const info = ''' static const description = '''
Shows how the Backboard in game over mode is rendered. Shows how the Backboard in game over mode is rendered.
- Select a character to update the character icon. - Select a character to update the character icon.

@ -3,7 +3,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class BackboardWaitingGame extends AssetsGame { class BackboardWaitingGame extends AssetsGame {
static const info = ''' static const description = '''
Shows how the Backboard in waiting mode is rendered. Shows how the Backboard in waiting mode is rendered.
'''; ''';

@ -7,12 +7,12 @@ void addBackboardStories(Dashbook dashbook) {
dashbook.storiesOf('Backboard') dashbook.storiesOf('Backboard')
..addGame( ..addGame(
title: 'Waiting', title: 'Waiting',
description: BackboardWaitingGame.info, description: BackboardWaitingGame.description,
gameBuilder: (_) => BackboardWaitingGame(), gameBuilder: (_) => BackboardWaitingGame(),
) )
..addGame( ..addGame(
title: 'Game over', title: 'Game over',
description: BackboardGameOverGame.info, description: BackboardGameOverGame.description,
gameBuilder: (context) => BackboardGameOverGame( gameBuilder: (context) => BackboardGameOverGame(
context.numberProperty('Score', 9000000000).toInt(), context.numberProperty('Score', 9000000000).toInt(),
context.listProperty( context.listProperty(

@ -4,7 +4,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class BallBoosterGame extends LineGame { class BallBoosterGame extends LineGame {
static const info = ''' static const description = '''
Shows how a Ball with a boost works. Shows how a Ball with a boost works.
- Drag to launch a boosted Ball. - Drag to launch a boosted Ball.

@ -16,7 +16,7 @@ class BallGame extends AssetsGame with TapDetector, Traceable {
], ],
); );
static const info = ''' static const description = '''
Shows how a Ball works. Shows how a Ball works.
- Tap anywhere on the screen to spawn a ball into the game. - Tap anywhere on the screen to spawn a ball into the game.

@ -8,14 +8,14 @@ void addBallStories(Dashbook dashbook) {
dashbook.storiesOf('Ball') dashbook.storiesOf('Ball')
..addGame( ..addGame(
title: 'Colored', title: 'Colored',
description: BallGame.info, description: BallGame.description,
gameBuilder: (context) => BallGame( gameBuilder: (context) => BallGame(
color: context.colorProperty('color', Colors.blue), color: context.colorProperty('color', Colors.blue),
), ),
) )
..addGame( ..addGame(
title: 'Booster', title: 'Booster',
description: BallBoosterGame.info, description: BallBoosterGame.description,
gameBuilder: (context) => BallBoosterGame(), gameBuilder: (context) => BallBoosterGame(),
); );
} }

@ -4,7 +4,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class BaseboardGame extends BallGame with Traceable { class BaseboardGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how the Baseboards are rendered. Shows how the Baseboards are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/baseboard/baseboard_game.dart';
void addBaseboardStories(Dashbook dashbook) { void addBaseboardStories(Dashbook dashbook) {
dashbook.storiesOf('Baseboard').addGame( dashbook.storiesOf('Baseboard').addGame(
title: 'Basic', title: 'Basic',
description: BaseboardGame.info, description: BaseboardGame.description,
gameBuilder: (_) => BaseboardGame(), gameBuilder: (_) => BaseboardGame(),
); );
} }

@ -5,7 +5,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class BoundariesGame extends BallGame with Traceable { class BoundariesGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how Boundaries are rendered. Shows how Boundaries are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/boundaries/boundaries_game.dart';
void addBoundariesStories(Dashbook dashbook) { void addBoundariesStories(Dashbook dashbook) {
dashbook.storiesOf('Boundaries').addGame( dashbook.storiesOf('Boundaries').addGame(
title: 'Basic', title: 'Basic',
description: BoundariesGame.info, description: BoundariesGame.description,
gameBuilder: (_) => BoundariesGame(), gameBuilder: (_) => BoundariesGame(),
); );
} }

@ -4,7 +4,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class CameraZoomGame extends AssetsGame with TapDetector { class CameraZoomGame extends AssetsGame with TapDetector {
static const info = ''' static const description = '''
Shows how CameraZoom can be used. Shows how CameraZoom can be used.
- Tap to zoom in/out. - Tap to zoom in/out.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/camera_zoom/camera_zoom_game.dart';
void addZoomStories(Dashbook dashbook) { void addZoomStories(Dashbook dashbook) {
dashbook.storiesOf('CameraZoom').addGame( dashbook.storiesOf('CameraZoom').addGame(
title: 'Example', title: 'Example',
description: CameraZoomGame.info, description: CameraZoomGame.description,
gameBuilder: (_) => CameraZoomGame(), gameBuilder: (_) => CameraZoomGame(),
); );
} }

@ -2,7 +2,7 @@ import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball_components/pinball_components.dart'; import 'package:pinball_components/pinball_components.dart';
class ChromeDinoGame extends Forge2DGame { class ChromeDinoGame extends Forge2DGame {
static const info = 'Shows how a ChromeDino is rendered.'; static const description = 'Shows how a ChromeDino is rendered.';
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {

@ -5,7 +5,7 @@ import 'package:sandbox/stories/chrome_dino/chrome_dino_game.dart';
void addChromeDinoStories(Dashbook dashbook) { void addChromeDinoStories(Dashbook dashbook) {
dashbook.storiesOf('Chrome Dino').addGame( dashbook.storiesOf('Chrome Dino').addGame(
title: 'Trace', title: 'Trace',
description: ChromeDinoGame.info, description: ChromeDinoGame.description,
gameBuilder: (_) => ChromeDinoGame(), gameBuilder: (_) => ChromeDinoGame(),
); );
} }

@ -3,7 +3,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class FireEffectGame extends LineGame { class FireEffectGame extends LineGame {
static const info = ''' static const description = '''
Shows how the FireEffect renders. Shows how the FireEffect renders.
- Drag a line to define the trail direction. - Drag a line to define the trail direction.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/effects/fire_effect_game.dart';
void addEffectsStories(Dashbook dashbook) { void addEffectsStories(Dashbook dashbook) {
dashbook.storiesOf('Effects').addGame( dashbook.storiesOf('Effects').addGame(
title: 'Fire', title: 'Fire',
description: FireEffectGame.info, description: FireEffectGame.description,
gameBuilder: (_) => FireEffectGame(), gameBuilder: (_) => FireEffectGame(),
); );
} }

@ -7,7 +7,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class FlipperGame extends BallGame with KeyboardEvents, Traceable { class FlipperGame extends BallGame with KeyboardEvents, Traceable {
static const info = ''' static const description = '''
Shows how Flippers are rendered. Shows how Flippers are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/flipper/flipper_game.dart';
void addFlipperStories(Dashbook dashbook) { void addFlipperStories(Dashbook dashbook) {
dashbook.storiesOf('Flipper').addGame( dashbook.storiesOf('Flipper').addGame(
title: 'Traced', title: 'Traced',
description: FlipperGame.info, description: FlipperGame.description,
gameBuilder: (_) => FlipperGame(), gameBuilder: (_) => FlipperGame(),
); );
} }

@ -6,7 +6,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class BigDashNestBumperGame extends BallGame with Traceable { class BigDashNestBumperGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how a BigDashNestBumper is rendered. Shows how a BigDashNestBumper is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -6,7 +6,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SignpostGame extends BallGame with Traceable, TapDetector { class SignpostGame extends BallGame with Traceable, TapDetector {
static const info = ''' static const description = '''
Shows how a Signpost is rendered. Shows how a Signpost is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -6,7 +6,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SmallDashNestBumperAGame extends BallGame with Traceable { class SmallDashNestBumperAGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how a SmallDashNestBumper ("a") is rendered. Shows how a SmallDashNestBumper ("a") is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -6,7 +6,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SmallDashNestBumperBGame extends BallGame with Traceable { class SmallDashNestBumperBGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how a SmallDashNestBumper ("b") is rendered. Shows how a SmallDashNestBumper ("b") is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -9,22 +9,22 @@ void addDashNestBumperStories(Dashbook dashbook) {
dashbook.storiesOf('Flutter Forest') dashbook.storiesOf('Flutter Forest')
..addGame( ..addGame(
title: 'Signpost', title: 'Signpost',
description: SignpostGame.info, description: SignpostGame.description,
gameBuilder: (_) => SignpostGame(), gameBuilder: (_) => SignpostGame(),
) )
..addGame( ..addGame(
title: 'Big Dash Nest Bumper', title: 'Big Dash Nest Bumper',
description: BigDashNestBumperGame.info, description: BigDashNestBumperGame.description,
gameBuilder: (_) => BigDashNestBumperGame(), gameBuilder: (_) => BigDashNestBumperGame(),
) )
..addGame( ..addGame(
title: 'Small Dash Nest Bumper A', title: 'Small Dash Nest Bumper A',
description: SmallDashNestBumperAGame.info, description: SmallDashNestBumperAGame.description,
gameBuilder: (_) => SmallDashNestBumperAGame(), gameBuilder: (_) => SmallDashNestBumperAGame(),
) )
..addGame( ..addGame(
title: 'Small Dash Nest Bumper B', title: 'Small Dash Nest Bumper B',
description: SmallDashNestBumperBGame.info, description: SmallDashNestBumperBGame.description,
gameBuilder: (_) => SmallDashNestBumperBGame(), gameBuilder: (_) => SmallDashNestBumperBGame(),
); );
} }

@ -8,7 +8,7 @@ import 'package:sandbox/stories/ball/basic_ball_game.dart';
class GoogleLetterGame extends BallGame { class GoogleLetterGame extends BallGame {
GoogleLetterGame() : super(color: const Color(0xFF009900)); GoogleLetterGame() : super(color: const Color(0xFF009900));
static const info = ''' static const description = '''
Shows how a GoogleLetter is rendered. Shows how a GoogleLetter is rendered.
- Tap anywhere on the screen to spawn a ball into the game. - Tap anywhere on the screen to spawn a ball into the game.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/google_word/google_letter_game.dart';
void addGoogleWordStories(Dashbook dashbook) { void addGoogleWordStories(Dashbook dashbook) {
dashbook.storiesOf('Google Word').addGame( dashbook.storiesOf('Google Word').addGame(
title: 'Letter 0', title: 'Letter 0',
description: GoogleLetterGame.info, description: GoogleLetterGame.description,
gameBuilder: (_) => GoogleLetterGame(), gameBuilder: (_) => GoogleLetterGame(),
); );
} }

@ -4,7 +4,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class KickerGame extends BallGame with Traceable { class KickerGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how Kickers are rendered. Shows how Kickers are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/kicker/kicker_game.dart';
void addKickerStories(Dashbook dashbook) { void addKickerStories(Dashbook dashbook) {
dashbook.storiesOf('Kickers').addGame( dashbook.storiesOf('Kickers').addGame(
title: 'Traced', title: 'Traced',
description: KickerGame.info, description: KickerGame.description,
gameBuilder: (_) => KickerGame(), gameBuilder: (_) => KickerGame(),
); );
} }

@ -14,7 +14,7 @@ class LaunchRampGame extends BallGame {
ballLayer: Layer.launcher, ballLayer: Layer.launcher,
); );
static const info = ''' static const description = '''
Shows how LaunchRamp are rendered. Shows how LaunchRamp are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/launch_ramp/launch_ramp_game.dart';
void addLaunchRampStories(Dashbook dashbook) { void addLaunchRampStories(Dashbook dashbook) {
dashbook.storiesOf('LaunchRamp').addGame( dashbook.storiesOf('LaunchRamp').addGame(
title: 'Traced', title: 'Traced',
description: LaunchRampGame.info, description: LaunchRampGame.description,
gameBuilder: (_) => LaunchRampGame(), gameBuilder: (_) => LaunchRampGame(),
); );
} }

@ -5,7 +5,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class LayerGame extends BallGame with TapDetector { class LayerGame extends BallGame with TapDetector {
static const info = ''' static const description = '''
Shows how Layers work when a Ball hits other components. Shows how Layers work when a Ball hits other components.
- Tap anywhere on the screen to spawn a Ball into the game. - Tap anywhere on the screen to spawn a Ball into the game.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/layer/layer_game.dart';
void addLayerStories(Dashbook dashbook) { void addLayerStories(Dashbook dashbook) {
dashbook.storiesOf('Layer').addGame( dashbook.storiesOf('Layer').addGame(
title: 'Example', title: 'Example',
description: LayerGame.info, description: LayerGame.description,
gameBuilder: (_) => LayerGame(), gameBuilder: (_) => LayerGame(),
); );
} }

@ -8,7 +8,7 @@ import 'package:sandbox/stories/ball/basic_ball_game.dart';
class PlungerGame extends BallGame with KeyboardEvents, Traceable { class PlungerGame extends BallGame with KeyboardEvents, Traceable {
PlungerGame() : super(color: const Color(0xFFFF0000)); PlungerGame() : super(color: const Color(0xFFFF0000));
static const info = ''' static const description = '''
Shows how Plunger is rendered. Shows how Plunger is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/plunger/plunger_game.dart';
void addPlungerStories(Dashbook dashbook) { void addPlungerStories(Dashbook dashbook) {
dashbook.storiesOf('Plunger').addGame( dashbook.storiesOf('Plunger').addGame(
title: 'Traced', title: 'Traced',
description: PlungerGame.info, description: PlungerGame.description,
gameBuilder: (_) => PlungerGame(), gameBuilder: (_) => PlungerGame(),
); );
} }

@ -6,7 +6,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class ScoreTextGame extends AssetsGame with TapDetector { class ScoreTextGame extends AssetsGame with TapDetector {
static const info = ''' static const description = '''
Simple game to show how score text works, Simple game to show how score text works,
- Tap anywhere on the screen to spawn an text on the given location. - Tap anywhere on the screen to spawn an text on the given location.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/score_text/score_text_game.dart';
void addScoreTextStories(Dashbook dashbook) { void addScoreTextStories(Dashbook dashbook) {
dashbook.storiesOf('ScoreText').addGame( dashbook.storiesOf('ScoreText').addGame(
title: 'Basic', title: 'Basic',
description: ScoreTextGame.info, description: ScoreTextGame.description,
gameBuilder: (_) => ScoreTextGame(), gameBuilder: (_) => ScoreTextGame(),
); );
} }

@ -5,7 +5,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SlingshotGame extends BallGame with Traceable { class SlingshotGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how Slingshots are rendered. Shows how Slingshots are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/slingshot/slingshot_game.dart';
void addSlingshotStories(Dashbook dashbook) { void addSlingshotStories(Dashbook dashbook) {
dashbook.storiesOf('Slingshots').addGame( dashbook.storiesOf('Slingshots').addGame(
title: 'Traced', title: 'Traced',
description: SlingshotGame.info, description: SlingshotGame.description,
gameBuilder: (_) => SlingshotGame(), gameBuilder: (_) => SlingshotGame(),
); );
} }

@ -7,7 +7,7 @@ import 'package:pinball_flame/pinball_flame.dart';
import 'package:sandbox/common/common.dart'; import 'package:sandbox/common/common.dart';
class BasicSpaceshipGame extends AssetsGame with TapDetector { class BasicSpaceshipGame extends AssetsGame with TapDetector {
static const info = ''' static const description = '''
Shows how a Spaceship works. Shows how a Spaceship works.
- Tap anywhere on the screen to spawn a Ball into the game. - Tap anywhere on the screen to spawn a Ball into the game.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/spaceship/basic_spaceship_game.dart';
void addSpaceshipStories(Dashbook dashbook) { void addSpaceshipStories(Dashbook dashbook) {
dashbook.storiesOf('Spaceship').addGame( dashbook.storiesOf('Spaceship').addGame(
title: 'Traced', title: 'Traced',
description: BasicSpaceshipGame.info, description: BasicSpaceshipGame.description,
gameBuilder: (_) => BasicSpaceshipGame(), gameBuilder: (_) => BasicSpaceshipGame(),
); );
} }

@ -14,7 +14,7 @@ class SpaceshipRailGame extends BallGame {
ballLayer: Layer.spaceshipExitRail, ballLayer: Layer.spaceshipExitRail,
); );
static const info = ''' static const description = '''
Shows how SpaceshipRail are rendered. Shows how SpaceshipRail are rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/spaceship_rail/spaceship_rail_game.dart';
void addSpaceshipRailStories(Dashbook dashbook) { void addSpaceshipRailStories(Dashbook dashbook) {
dashbook.storiesOf('SpaceshipRail').addGame( dashbook.storiesOf('SpaceshipRail').addGame(
title: 'Traced', title: 'Traced',
description: SpaceshipRailGame.info, description: SpaceshipRailGame.description,
gameBuilder: (_) => SpaceshipRailGame(), gameBuilder: (_) => SpaceshipRailGame(),
); );
} }

@ -15,7 +15,7 @@ class SpaceshipRampGame extends BallGame with KeyboardEvents {
ballLayer: Layer.spaceshipEntranceRamp, ballLayer: Layer.spaceshipEntranceRamp,
); );
static const info = ''' static const description = '''
Shows how SpaceshipRamp is rendered. Shows how SpaceshipRamp is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/spaceship_ramp/spaceship_ramp_game.dart';
void addSpaceshipRampStories(Dashbook dashbook) { void addSpaceshipRampStories(Dashbook dashbook) {
dashbook.storiesOf('SpaceshipRamp').addGame( dashbook.storiesOf('SpaceshipRamp').addGame(
title: 'Traced', title: 'Traced',
description: SpaceshipRampGame.info, description: SpaceshipRampGame.description,
gameBuilder: (_) => SpaceshipRampGame(), gameBuilder: (_) => SpaceshipRampGame(),
); );
} }

@ -6,7 +6,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart'; import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SparkyBumperGame extends BallGame with Traceable { class SparkyBumperGame extends BallGame with Traceable {
static const info = ''' static const description = '''
Shows how a SparkyBumper is rendered. Shows how a SparkyBumper is rendered.
- Activate the "trace" parameter to overlay the body. - Activate the "trace" parameter to overlay the body.

@ -5,7 +5,7 @@ import 'package:sandbox/stories/sparky_bumper/sparky_bumper_game.dart';
void addSparkyBumperStories(Dashbook dashbook) { void addSparkyBumperStories(Dashbook dashbook) {
dashbook.storiesOf('Sparky Bumpers').addGame( dashbook.storiesOf('Sparky Bumpers').addGame(
title: 'Traced', title: 'Traced',
description: SparkyBumperGame.info, description: SparkyBumperGame.description,
gameBuilder: (_) => SparkyBumperGame(), gameBuilder: (_) => SparkyBumperGame(),
); );
} }

Loading…
Cancel
Save