mirror of https://github.com/flutter/pinball.git
parent
3262c5f8a0
commit
51ddc42236
@ -1,16 +1,14 @@
|
||||
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);
|
||||
static const String pixeloidMono =
|
||||
'packages/pinball_components/${FontFamily.pixeloidMono}';
|
||||
|
||||
/// Sans variation of the Pixeloid font
|
||||
static final String pixeloidSans = _prefixFont(FontFamily.pixeloidMono);
|
||||
static const String pixeloidSans =
|
||||
'packages/pinball_components/${FontFamily.pixeloidMono}';
|
||||
}
|
||||
|
Loading…
Reference in new issue