alignment property
🔛 This [IconToo will side-align its glyph according to ambient or assigned textDirection.
Considering it is also trueSize
d by design,
default should be a desirable result,
but override this value if necessary.
- For example, because an initialized
_sizeX
is the value provided tosuper
Icon.size, manual setting could arise as a solution to some unforeseen issue. - Furthermore, an IconToo.tall is dictated as taller rather than wider.
A standard Icon centers its IconData glyph in a square SizedBox, which is the root issue for non-square icons.
Implementation
final AlignmentGeometry? alignment;