//installation of google fonts in flutter (pubspec.yaml)
//please ignore the text after two slashes!
dependencies:
google_fonts: ^1.1.1 //(current one is this)
$ flutter pub get // => (this means click on the pub get option[kinda apply]).
Text(
'This is Google Fonts',
style: GoogleFonts.getFont('Lato'),
),
Text(
'This is Google Fonts',
style: GoogleFonts.lato(),
),
Text(
'This is Google Fonts',
style: GoogleFonts.lato(
textStyle: TextStyle(color: Colors.blue, letterSpacing: .5),
),
),