Icons (Material Design)
TheIcons class provides access to the complete Material Design icon set with over 7,000 icons.
Usage
Common Material Icons
Here are some frequently used Material icons: Navigation:Icon Variants
Many Material icons come in multiple styles:- Filled (default):
ft.Icons.FAVORITE - Outlined:
ft.Icons.FAVORITE_BORDER,ft.Icons.HOME_OUTLINED - Rounded:
ft.Icons.HOME_ROUNDED - Sharp:
ft.Icons.HOME_SHARP
random Method
Select a random icon from the Material Icons collection.exclude: List of icons to exclude from random selectionweights: Dictionary mapping icons to their selection weights
- A randomly selected IconData, or None if all icons are excluded
CupertinoIcons (iOS Design)
TheCupertinoIcons class provides access to the iOS-style Cupertino icon set.
Usage
Common Cupertino Icons
Navigation:Filled vs Outlined
Cupertino icons often come in both filled and outlined versions:random Method
Select a random icon from the Cupertino Icons collection.exclude: List of icons to exclude from random selectionweights: Dictionary mapping icons to their selection weights
- A randomly selected IconData, or None if all icons are excluded
Icon Component
Both icon sets are used with theIcon control:
When to Use Each Icon Set
Use Material Icons when:
- Building Material Design apps
- Targeting Android or web platforms
- You want filled, outlined, rounded, and sharp variants
- You need the widest selection of icons (7,000+)
Use Cupertino Icons when:
- Building iOS-style apps
- You want native iOS appearance
- You prefer Apple’s design language
- Building cross-platform apps that should feel native on iOS