fix: make PinballFonts const

pull/193/head
arturplaczek 3 years ago
parent 3262c5f8a0
commit 51ddc42236

@ -1,16 +1,14 @@
import 'package:pinball_components/gen/fonts.gen.dart'; 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 with the fonts available on the pinball game
class PinballFonts { class PinballFonts {
PinballFonts._(); PinballFonts._();
/// Mono variation of the Pixeloid font /// 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 /// Sans variation of the Pixeloid font
static final String pixeloidSans = _prefixFont(FontFamily.pixeloidMono); static const String pixeloidSans =
'packages/pinball_components/${FontFamily.pixeloidMono}';
} }

Loading…
Cancel
Save