First release candidate for a stable release containing the Spacing
utilities and a couple of minor improvements.
Breaking Changes
CommonLayout
andGranularLayout
value
function now requires the typeT
to extend fromObject
, not allowing
the return ofnull
values (which threw anull
access in specific scenarios). This was intended but the
type-inference allowed nullable types when not enforced byObject
;CommonLayoutWidget
/GranularLayoutWidget
constructors requires aresolverBuilder
instead of aresolver
.
Added
- Unit and Widget tests for all the features provided in
layoutr
; maybeValue
in bothCommonLayout
andGranularLayout
;Spacing
,RawSpacings
andSpacingsInheritedWidget
with utilities (SpacingMixin
,SpacingHelpers
and
SpacingPaddingHelpers
);LayoutResolverInheritedWidget
, baseInheritedWidget
for allLayoutResolver
implementations;- Both
CommonLayoutWidget
/GranularLayoutWidget
:- accept a new optional
spacings
argument that allows responsive and type-safe spacing alongside the usual resolver; withResponsiveSpacings
for a fine-grained constructor of breakpoint-specificspacings
.
- accept a new optional
split_view
example.
Updated
- Both
CommonLayoutWidget
/GranularLayoutWidget
can live independent from aMediaQuery
parent widget (by using a
LayoutBuilder
); - Restructured the example folder to a more realistic usage (also added a ton of comments to the respective examples);
README.md
to reflect the newSpacing
features.
Fixed
LayoutResolver.closestValue
now throws a descriptiveArgumentError
for empty dictionaries;