mirror of https://github.com/flutter/pinball.git
parent
b865d05fd4
commit
c1d2b41987
@ -0,0 +1,16 @@
|
|||||||
|
import 'package:pinball_components/gen/fonts.gen.dart';
|
||||||
|
|
||||||
|
String _prefixFont(String font) {
|
||||||
|
return 'packages/pinball_components/$font';
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Class with the fonts available on the pinball game
|
||||||
|
class PinballFonts {
|
||||||
|
PinballFonts._();
|
||||||
|
|
||||||
|
/// Mono variation of the Pixeloid font
|
||||||
|
static final String pixeloidMono = _prefixFont(FontFamily.pixeloidMono);
|
||||||
|
|
||||||
|
/// Sans variation of the Pixeloid font
|
||||||
|
static final String pixeloidSans = _prefixFont(FontFamily.pixeloidMono);
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
library pinball_components;
|
library pinball_components;
|
||||||
|
|
||||||
export 'gen/assets.gen.dart';
|
export 'gen/assets.gen.dart';
|
||||||
|
export 'gen/pinball_fonts.dart';
|
||||||
export 'src/pinball_components.dart';
|
export 'src/pinball_components.dart';
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
import 'package:dashbook/dashbook.dart';
|
||||||
|
import 'package:flame/game.dart';
|
||||||
|
import 'package:sandbox/common/common.dart';
|
||||||
|
import 'package:sandbox/stories/score_text/basic.dart';
|
||||||
|
|
||||||
|
void addScoreTextStories(Dashbook dashbook) {
|
||||||
|
dashbook.storiesOf('ScoreText').add(
|
||||||
|
'Basic',
|
||||||
|
(context) => GameWidget(
|
||||||
|
game: ScoreTextBasicGame(),
|
||||||
|
),
|
||||||
|
codeLink: buildSourceLink('score_text/basic.dart'),
|
||||||
|
info: ScoreTextBasicGame.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/score_text_effect/basic.dart';
|
|
||||||
|
|
||||||
void addScoreTextEffectStories(Dashbook dashbook) {
|
|
||||||
dashbook.storiesOf('ScoreTextEffect').add(
|
|
||||||
'Basic',
|
|
||||||
(context) => GameWidget(
|
|
||||||
game: ScoreTextEffectBasicGame(),
|
|
||||||
),
|
|
||||||
codeLink: buildSourceLink('score_text_effect/basic.dart'),
|
|
||||||
info: ScoreTextEffectBasicGame.info,
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in new issue