

N.B., you will see many fonts files after unzipping but only copy Monserrat-Regular.ttf, Monserrat-Italic.ttf, Monserrat-Bold.ttf for this tutorial. ttf files into the fonts folder that you just created. You need to structure the folder like this: my_app/ Create a folder named fonts in the root of the Flutter project. Step 3: Now click on the Download family to download the fontĪfter downloading, we need to add the font files to our Flutter project.Step 1: Visit Google Fonts and search for Monserrat in the search bar.Google Fonts is a catalog containing fonts published under licenses that allow you to use them on any website or an app for commercial or personal use.įollow these steps to download the font file: But in this tutorial, we will be downloading the. You might have gotten a custom font file from a designer or somewhere else. In this example, we’ll use the Montserrat font. Let’s get started by downloading a custom font from Google Fonts. Getting started with custom fonts 🎬įollow these steps to begin with fonts in Flutter:
#TEXT STYLES ANDROID HOW TO#
In this article, you’ll learn how to add custom a font to your project by creating a basic Flutter app that displays texts with different font styles. Either way, you will have to download the font file (.ttf ) and import it to your Flutter project. You might have a custom-created font from a designer, or you might have downloaded a font from any other resource like Google Fonts. Roboto and San Fransisco are the default font family for Android and iOS, respectively. Isn’t that awesome? Yes, it is.ĭesigners and developers favor using a custom font to give their app a distinct appearance that helps in building brand awareness and a better product altogether. Shubham Soni Follow Product Engineer threedots | Google India Scholar 2018 | Technical Author LogRocket How to use custom fonts in Flutterįlutter helps us create beautiful mobile applications for multiple platforms with a single codebase.
