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
IconToooffering 📋copyWithandoperatoroverrides:- 👆➕➖❌💥🧦 (see documentation)
- Especially exciting is 👆
IconButton operator >(VoidCallback onTap) - And 💥
Icon/IconToo operator %(dynamic modulate)is neat for super simple randoms - The
Paddingprovided by 🧦Widget operater &(dynamic padding)could use a better emoji. (They don't need any.)
-
Private fields introduced for
_sizeXand_sizeYthat may be initialized with the constructor.- Now the new
sizeXandsizeYfields are getters only that look to_trueSize, then to_sizeXand_sizeY. - This means these getters always represent the true size for the
IconToo, as they consider all sizing options.Size trueSizemaintained for now, but isdeprecatedand a private field with no getter.- If initialized, constructor
double? sizeX ?? double? sizeYis passed tosuper IconasIcon.size- New constructor
IconToo.tallforsizeY ?? sizeXinitialization
- New constructor
- Made the
copyWithmethods cleaner/simpler to implement.
- Now the new
2.1.0 25 APR 21 #
-
🆕
sizeXandsizeYparams forconstcreation withdoubles -
🆕 Support for overriding
AlignmentGeometryasIconToo.alignment.- Defaults to side-align by
Directionality.ofbecauseIconTooistrueSized by design.
- Defaults to side-align by
-
An
extension on Iconcalled 🗜️IconUtilsdeployed:- 📋
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
trueSizehad its@requiredment 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
Iconclass and recognized thatIconTooought to supportTextDirection, allow aKeyinitialization, 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.