How to Change the Application Font
-
Add your font file under
assets/fonts/, then register it inpubspec.yaml:fonts:- family: tangerinefonts:- asset: assets/fonts/tangerine.ttfweight: 700 -
Use it by passing the family name to
CustomText, the app's shared text widget (lib/common/widgets/custom_text.dart):CustomText('Tic Tac Toe',family: 'tangerine',)Currently
tangerineis only used on the splash screen (lib/screens/splash_screen.dart). There's no single global app-wide font — eachCustomTextfalls back to the system default unless you passfamily, so apply your font wherever you want it, or thread it through more widgets to make it the default everywhere.
Font sizes
Separately, shared text sizes (not families) are centralized in lib/core/theme/font_sizes.dart:
class FontSizes {
final double extraSmall = 10.0;
final double small = 12.0;
final double normal = 14.0;
final double medium = 16.0;
final double large = 18.0;
final double xL = 20.0;
final double xXL = 24.0;
}