icon 2.2.1 icon: ^2.2.1 copied to clipboard
An extended Icon "too" for those that are not actually square, plus shadows support + neat Icon extension operators.
🙋♂️ Icon #
[2.2.1] - 27 APR 21 #
- Removing references to deprecated
trueSize.
[2.2.0] - 27 APR 21 #
-
🆕 methods for an
IconToo
offering 📋copyWith
andoperator
overrides:- 👆➕➖❌💥🧦 (see documentation)
- Especially exciting is 👆
IconButton operator >(VoidCallback onTap)
- And 💥
Icon
/IconToo operator %(dynamic modulate)
is neat for super simple randoms - The
Padding
provided by 🧦Widget operater &(dynamic padding)
could use a better emoji. (They don't need any.)
-
Private fields introduced for
_sizeX
and_sizeY
that may be initialized with the constructor.- Now the new
sizeX
andsizeY
fields are getters only that look to_trueSize
, then to_sizeX
and_sizeY
. - This means these getters always represent the true size for the
IconToo
, as they consider all sizing options.Size trueSize
maintained for now, but isdeprecated
and a private field with no getter.- If initialized, constructor
double? sizeX ?? double? sizeY
is passed tosuper Icon
asIcon.size
- New constructor
IconToo.tall
forsizeY ?? sizeX
initialization
- New constructor
- Made the
copyWith
methods cleaner/simpler to implement.
- Now the new
[2.1.0] - 25 APR 21 #
-
🆕
sizeX
andsizeY
params forconst
creation withdouble
s -
🆕 Support for overriding
AlignmentGeometry
asIconToo.alignment
.- Defaults to side-align by
Directionality.of
becauseIconToo
istrueSize
d by design.
- Defaults to side-align by
-
An
extension on Icon
called 🗜️IconUtils
deployed:- 📋
copyWith
- ❌
operator *(dynamic operation)
operation is Color
=>
this.copyWith(color:operation)
operation is double
=>
this.copyWith(size: size ?? 0 * operation)
- ➕
operator +(double inflate)
- ➖
operator -(double deflate)
- 📋
[2.0.0+4] - 05 APR 21 #
- Null-safe IconToo.
[1.0.1+3] - 26 FEB 21 #
- Between 0.1.0 and 1.0.0, parameter
trueSize
had its@required
ment removed, but the README and documentation did not reflect this.
[1.0.0+2] - 25 FEB 21 #
-
Added a second demo to the Icon Example app.
-
Looked back at the base
Icon
class and recognized thatIconToo
ought to supportTextDirection
, allow aKey
initialization, and properly accept and pass asemanticLabel
. -
Altered some documentation based on hover hints and DartDoc.
-
Updated README presentation and sample code.
[0.1.0+1] - 25 FEB 21 #
- Initial release, forked from a primary project.