Adding Custom Fonts to your Flutter application.

First, download the Google font from google fonts.

Head over to https://fonts.google.com/ and search for the font you wish.

Second, upload or extract your downloaded files into a folder named the name of your font say ‘Poppins’.

Thirdly, in your pubspec.yaml file, add the path to your font files.

Lastly, in your main.dart file, add the following theme.

Voila, you have set up your fonts and are ready. Try checking it out in your texts.

--

--