I want to change the font of the labelText with a Google Font. I already imported the package for Google Fonts. Here is the code below:
TextFormField(
labelText: 'Label Text',
labelStyle: TextStyle(
color: Colors.black,
letterSpacing: 1.3,
fontFamily: GoogleFonts.openSans().fontFamily,
),
),
),
Is there a way to change the font of the labelText?
2
Answers
Try this way
you can use like with normal TextStyle