A material design icon.
Icons are not interactive. For an interactive icon, consider IconButton.
Icons are identified by their name (as given on that page), with spaces converted to underscores, from the Icons class. For example, the "alarm add" icon is Icons.alarm_add.
Available icons are shown on this page: design.google.com/icons/
To use this class, make sure you set uses-material-design: true
in your project's flutter.yaml
file. This ensures that the
MaterialIcons font is included in your application. This font is
used to display the icons.
See also:
- IconButton, for interactive icons.
- Icons, for the list of available icons for use with this class.
- IconTheme, which provides ambient configuration for icons.
- ImageIcon, for showing icons from AssetImages or other
ImageProvider
s.
- Inheritance
- Object
- Widget
- StatelessWidget
- Icon
Constructors
Properties
- color → Color
-
The color to use when drawing the icon.
read-only - icon → IconData
-
The icon to display. The available icons are described in Icons.
read-only - size → double
-
The size of the icon in logical pixels.
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - key → Key
-
Controls how one widget replaces another widget in the tree.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
-
debugFillDescription(
List<String> description) → void -
Add additional information to the given description for use by
toString
. -
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
toStringShort(
) → String -
A short, textual description of this widget.
inherited