- Breaking rename
Dimensions
theme extension intoDimensionsTheme
, asDimensions
is often desirable as the name for the enum that holds dimension tokens
- Breaking Migrate to dart 3
- Breaking Dimensions theme extension no longer enforce pre-defined token
- Breaking Deprecated
Space[Token]
widgets have been removed - Added
SpaceDimensionsMixin
for constructSpace
widgets from user-defined dimension token - Added
BuildContext
extension for padding and borderRadius
- Introduce
Space(DimensionToken token)
widget Space[token]
widgets are now deprecated in favor of the new Space widget.- Breaking
DoubleDimensions.fillMissing
as been renamedDoubleDimensions.fromMedium
- fix missing
RadiusDimensions
export
- DimensionToken class has been introduced. DimensionToken represent one the token defined in the package: [smallest, smaller, small, medium, large, larger, largest]. You can access theme using Dimensions.[token].
- Breaking: EdgeInsetsComposer redesign:
- You should now use
EdgeInsetsOf(context)
instead ofEdgeInsteadComposer.of(context)
.EdgeInsetsOf(context)
api takes advantages of new Dimension's tokens and offer an API similar to the EdgeInsets class.
- You should now use
- Breaking:
EdgeInsets[Token]().value
as been removed. UseDimensions.of(context).insets.[token]
instead. - Breaking: DimensionsData class as been renamed to DimensionsThemeData.
- DimensionsThemeData now have a get(DimensionToken) that returns the corresponding value for a given token.
- Breaking: RadiiTheme now use [double] values instead of [Radius].
- Introduce RadiusOf util class.
- Breaking:
[Space|Insets|BorderWidth|Radius]Dimensions.from
constructor is now namedDimensions.fillMissing
. [Space|Insets|BorderWidth|Radius]Dimensions
parameters are no morerequired
.- Improved readme
- Readme improvements
- Initial version.