Releases: olmps/layoutr
Releases · olmps/layoutr
v1.0.0
First release candidate for a stable release containing the Spacing utilities and a couple of minor improvements.
Breaking Changes
CommonLayoutandGranularLayoutvaluefunction now requires the typeTto extend fromObject, not allowing
the return ofnullvalues (which threw anullaccess in specific scenarios). This was intended but the
type-inference allowed nullable types when not enforced byObject;CommonLayoutWidget/GranularLayoutWidgetconstructors requires aresolverBuilderinstead of aresolver.
Added
- Unit and Widget tests for all the features provided in
layoutr; maybeValuein bothCommonLayoutandGranularLayout;Spacing,RawSpacingsandSpacingsInheritedWidgetwith utilities (SpacingMixin,SpacingHelpersand
SpacingPaddingHelpers);LayoutResolverInheritedWidget, baseInheritedWidgetfor allLayoutResolverimplementations;- Both
CommonLayoutWidget/GranularLayoutWidget:- accept a new optional
spacingsargument that allows responsive and type-safe spacing alongside the usual resolver; withResponsiveSpacingsfor a fine-grained constructor of breakpoint-specificspacings.
- accept a new optional
split_viewexample.
Updated
- Both
CommonLayoutWidget/GranularLayoutWidgetcan live independent from aMediaQueryparent 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.mdto reflect the newSpacingfeatures.
Fixed
LayoutResolver.closestValuenow throws a descriptiveArgumentErrorfor empty dictionaries;
v1.0.0-nullsafety.0
First library release, everything already documented in README.md.
For a stable release, just the tests and a little improvement on examples remains.