It’s common practice to put font files in a fonts or assetsįor example, to import the Raleway and Roboto Mono fontįiles into a project, the folder structure might look like this:įlutter : fonts : - family : Raleway fonts : - asset : fonts/Raleway-Regular.ttf - asset : fonts/Raleway-Italic.ttf style : italic - family : RobotoMono fonts : - asset : fonts/RobotoMono-Regular.ttf - asset : fonts/RobotoMono-Bold.ttf weight : 700 pubspec.yaml option definitions To work with a font, import the font files into the project. This recipe creates an app that uses custom fonts with To over 1,000 open-sourced font families.įor another approach to using custom fonts,Įspecially if you want to re-use one font over multiple projects,įlutter works with custom fonts and you can apply a customįont across an entire app or to individual widgets. Or perhaps you downloaded a font from Google Fonts.Ĭheck out the google_fonts package for direct access
One of the most common requests from designers is for custom fonts.įor example, you might have a custom-built font from a designer, Although Android and iOS offer high quality system fonts,