In this recipe, you have seen two common features in Flutter: choosing fonts for your Text widgets, and adding images to your screens.
When working with Google Fonts, adding them to your project is extremely easy. You just need to add the google_fonts package dependency in the pubspec.yaml file to your app, as you did with the following command:
google_fonts: ^2.0.0
There are currently about 1,000 fonts you can use for free in your apps with Google Fonts! Have a look at the official site, https://fonts.google.com/, to choose the right one for your apps.
When you want to use the google_fonts package in one or more of your screens, you need to import the package at the top of the file. Youcan do this in the text_layout.dart file with the help of the following command:
import 'package:google_fonts/google_fonts.dart';
From there, you just need to use the package. You add the GoogleFonts widget to the style property of your Text:
style: GoogleFonts.leckerliOne...