Closed kawsaramin101 closed 4 months ago
I made this change to _buildTheme function and now it's working
ThemeData _buildTheme(ThemeData base, Brightness brightness) {
const String fontFamily = 'RobotoMono';
return base.copyWith(
brightness: brightness,
splashFactory: NoSplash.splashFactory,
textTheme: Typography().white.apply(fontFamily: fontFamily), // Added typography instead of TextTheme
);
}
I have the font with only one font weight, so I didn't have to change the font weight in code.
I have this code to change font family and font weight when using Yaru theme
The app just crashes, doesn't even show any error. How can I fix this? I have the fonts loaded correctly, because it was working before adding Yaru.