layoutr 1.0.0
layoutr: ^1.0.0 copied to clipboard
Succinct utilities to help doing responsive layouts with less verbosity
1.0.0-dev.0 #
First 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,SpacingHelpersandSpacingPaddingHelpers);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 aLayoutBuilder); - 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;
1.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.