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 {
AlienBumperAGame() : super(color: const Color(0xFF0000FF));
static const info = '''
static const description = '''
Shows how a AlienBumperA is rendered.
- 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 {
AlienBumperBGame() : super(color: const Color(0xFF0000FF));
static const info = '''
static const description = '''
Shows how a AlienBumperB is rendered.
- Activate the "trace" parameter to overlay the body.

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

@ -11,7 +11,7 @@ class BackboardGameOverGame extends AssetsGame
fileNames: characterIconPaths.values.toList(),
);
static const info = '''
static const description = '''
Shows how the Backboard in game over mode is rendered.
- 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';
class BackboardWaitingGame extends AssetsGame {
static const info = '''
static const description = '''
Shows how the Backboard in waiting mode is rendered.
''';

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

@ -4,7 +4,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart';
class BallBoosterGame extends LineGame {
static const info = '''
static const description = '''
Shows how a Ball with a boost works.
- 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.
- Tap anywhere on the screen to spawn a ball into the game.

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

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

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

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

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

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

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

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

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

@ -3,7 +3,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart';
class FireEffectGame extends LineGame {
static const info = '''
static const description = '''
Shows how the FireEffect renders.
- 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) {
dashbook.storiesOf('Effects').addGame(
title: 'Fire',
description: FireEffectGame.info,
description: FireEffectGame.description,
gameBuilder: (_) => FireEffectGame(),
);
}

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

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

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

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

@ -8,7 +8,7 @@ import 'package:sandbox/stories/ball/basic_ball_game.dart';
class GoogleLetterGame extends BallGame {
GoogleLetterGame() : super(color: const Color(0xFF009900));
static const info = '''
static const description = '''
Shows how a GoogleLetter is rendered.
- 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) {
dashbook.storiesOf('Google Word').addGame(
title: 'Letter 0',
description: GoogleLetterGame.info,
description: GoogleLetterGame.description,
gameBuilder: (_) => GoogleLetterGame(),
);
}

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

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

@ -14,7 +14,7 @@ class LaunchRampGame extends BallGame {
ballLayer: Layer.launcher,
);
static const info = '''
static const description = '''
Shows how LaunchRamp are rendered.
- 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) {
dashbook.storiesOf('LaunchRamp').addGame(
title: 'Traced',
description: LaunchRampGame.info,
description: LaunchRampGame.description,
gameBuilder: (_) => LaunchRampGame(),
);
}

@ -5,7 +5,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class LayerGame extends BallGame with TapDetector {
static const info = '''
static const description = '''
Shows how Layers work when a Ball hits other components.
- 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) {
dashbook.storiesOf('Layer').addGame(
title: 'Example',
description: LayerGame.info,
description: LayerGame.description,
gameBuilder: (_) => LayerGame(),
);
}

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

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

@ -6,7 +6,7 @@ import 'package:pinball_components/pinball_components.dart';
import 'package:sandbox/common/common.dart';
class ScoreTextGame extends AssetsGame with TapDetector {
static const info = '''
static const description = '''
Simple game to show how score text works,
- 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) {
dashbook.storiesOf('ScoreText').addGame(
title: 'Basic',
description: ScoreTextGame.info,
description: ScoreTextGame.description,
gameBuilder: (_) => ScoreTextGame(),
);
}

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

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

@ -7,7 +7,7 @@ import 'package:pinball_flame/pinball_flame.dart';
import 'package:sandbox/common/common.dart';
class BasicSpaceshipGame extends AssetsGame with TapDetector {
static const info = '''
static const description = '''
Shows how a Spaceship works.
- 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) {
dashbook.storiesOf('Spaceship').addGame(
title: 'Traced',
description: BasicSpaceshipGame.info,
description: BasicSpaceshipGame.description,
gameBuilder: (_) => BasicSpaceshipGame(),
);
}

@ -14,7 +14,7 @@ class SpaceshipRailGame extends BallGame {
ballLayer: Layer.spaceshipExitRail,
);
static const info = '''
static const description = '''
Shows how SpaceshipRail are rendered.
- 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) {
dashbook.storiesOf('SpaceshipRail').addGame(
title: 'Traced',
description: SpaceshipRailGame.info,
description: SpaceshipRailGame.description,
gameBuilder: (_) => SpaceshipRailGame(),
);
}

@ -15,7 +15,7 @@ class SpaceshipRampGame extends BallGame with KeyboardEvents {
ballLayer: Layer.spaceshipEntranceRamp,
);
static const info = '''
static const description = '''
Shows how SpaceshipRamp is rendered.
- 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) {
dashbook.storiesOf('SpaceshipRamp').addGame(
title: 'Traced',
description: SpaceshipRampGame.info,
description: SpaceshipRampGame.description,
gameBuilder: (_) => SpaceshipRampGame(),
);
}

@ -6,7 +6,7 @@ import 'package:sandbox/common/common.dart';
import 'package:sandbox/stories/ball/basic_ball_game.dart';
class SparkyBumperGame extends BallGame with Traceable {
static const info = '''
static const description = '''
Shows how a SparkyBumper is rendered.
- 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) {
dashbook.storiesOf('Sparky Bumpers').addGame(
title: 'Traced',
description: SparkyBumperGame.info,
description: SparkyBumperGame.description,
gameBuilder: (_) => SparkyBumperGame(),
);
}

Loading…
Cancel
Save