Why when I use custom Material 3 ThemeData - main color is green- for my widget like ElevatedButton, it displays font family Roboto-regular weight 500 instead Roboto as default-Material 3 in system - main color is purple. I have two question?
Why Roboto-regular has weight 500, whether it is the bug of Flutter? According to Google Fonts, Roboto-regular has weight 400. The images for my custom theme:
I use my custom Material 3 but not similar to the Material 3 default system, because the text in Elevated Button is thinner than their (because of font family Roboto-regular)? The images for default:
// Why the style doesn't affect to the text?
ElevatedButton( child: Text('Roboto', style: GoogleFonts.robotoTextTheme().headlineLarge), onPressed: () {} )