1- Move those fonts to some asset folder (e.g. google_fonts). You can name this folder whatever you like and use subdirectories.
2- Ensure that you have listed the asset folder (e.g. google_fonts/) in your pubspec.yaml, under assets.
3- Write following code in main.dart