flutter_font_picker
2.1.1, released 5 weeks ago by whidev.com
A Flutter widget that lets the user select a Google Font from a custom dropdown or screen.
What it does
Provides a FontPicker widget that can be used in a route or dialog to choose a Google Font and its variants. It allows searching, filtering by category or language, and returns a PickerFont object that can be converted directly into a TextStyle.
AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a UI for users to pick Google Fonts inside your application.
- You want to allow users to customize font weights, styles, and categories at runtime.
Skip it when
- You only need a static, predefined set of custom fonts packaged with your assets.
- Your application cannot load fonts over the network from Google Fonts.
Strengths
- Supports filtering, search, and recent fonts.
- Includes localizations for several languages.
- Easily themed via FontPickerTheme or ThemeData extensions.
Weaknesses
- Requires internet access or device storage to download Google Fonts when they come into view.
- Using too many fonts can impact performance.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
PickerFont? _selectedFont;
FontPicker(
onFontChanged: (PickerFont font) {
_selectedFont = font;
},
)Alternatives
Packages that do the same job and could replace flutter_font_picker.
- themed
Define themes with const values and change them dynamically at runtime.
79Compare - system_fonts
Load system fonts (ttf/otf) on Windows, macOS, Linux for Flutter apps
44Compare - network_font
Load custom fonts from the network without storing them in local asset folders.
45Compare
Works with
Packages commonly used together with flutter_font_picker: ones it builds on, ones built on it, and its own family.