SheenIcon class Foundation

An icon from sheen's set, drawn from SVG paths on a 24 × 24 grid.

Name it with a SheenIcons constant. Stroke icons draw with stroke width and round caps; a name ending in .fill (or filled true) draws the solid glyph. The colour defaults to the ambient IconTheme colour, which SheenScope sets to the theme's text colour. Arrows that point along the reading direction (back, chevron) mirror in right-to-left text.

const SheenIcon(SheenIcons.search, size: 18)
const SheenIcon(SheenIcons.heartFill, color: Color(0xFFE5484D), semanticLabel: 'Saved')
Inheritance

Constructors

SheenIcon(String name, {Key? key, double size = 22, Color? color, double stroke = 1.8, bool filled = false, String? semanticLabel})
The icon called name, size points square.
const

Properties

color → Color?
The colour; the ambient IconTheme colour when null.
final
filled → bool
Draws the filled glyph of name (the same as naming it name.fill).
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
name → String
The icon's name: a SheenIcons constant.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader says; null hides the icon from screen readers (right for icons next to a label).
final
size → double
The width and height in points.
final
stroke → double
The stroke width of stroke icons, in points on the 24-point grid.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
svg() → String
The SVG document of this glyph, drawn in black; the colour is applied with a colour filter.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

directional → const Set<String>
The glyphs that point along the reading direction and mirror in right-to-left text.