drawIcon
Deprecated
This function will be removed in a future release.
Replace with
drawFontIcon(iconName, iconFont, tint, context, density, size, weight)
An extension function that draws the icon iconName using iconFont into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint. If iconFont is a variable font, weight will applied as a variation setting, or else the font with the nearest weight will be picked.
Parameters
the icon name (can be a single character or a string)
the Context used to get specific values like density or layout direction
the tint to be applied to this icon
the icon font used to draw this icon
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal
Deprecated
This function will be removed in a future release.
Replace with
drawFontIcon(icon, iconFont, tint, context, density, size, weight)
An extension function that draws the icon using iconFont into the receiver Canvas. The icon will be size × size dp, and will be tinted with tint. If iconFont is a variable font, weight will applied as a variation setting, or else the font with the nearest weight will be picked.
Parameters
the icon Unicode character
the Context used to get specific values like density or layout direction
the tint to be applied to this icon
the icon font used to draw this icon
the size of the icon, by default 24 dp
the font weight of the icon, by default FontWeight.Normal