jaspr
-
BREAKING Changed
AppBinding
sUri get currentUri
toString get currentUrl
. -
BREAKING Changed return type of
renderComponent()
fromFuture<String>
toFuture<({int statusCode, String body, Map<String, List<String>> headers})>
.The rendered html is accessible through the
body
property.statusCode
andheaders
can be used to create a response object when part of a custom http handler. -
Added
context.url
extension getter on both client and server. -
Added
context.headers
,context.headersAll
andcontext.cookies
extension getters on the server. These can be used to access the headers and cookies of the currently handled request. -
Added
context.setHeader()
andcontext.setCookie()
andcontext.setStatusCode()
extension on the server. These can be used to set headers, cookies and the status code of the response. -
Deprecated having seperate style groups (
Styles.box()
,Styles.text()
,Styles.background()
, etc. as well as.box()
,.text()
, etc.). All styling properties are now available under the singleStyles()
constructur and.styles()
method.Before:
css('.main') .box(width: 100.px, height: 100.px) .text(align: TextAlign.center) .background(color: Colors.blue);
After:
css('.main').styles( width: 100.px, height: 100.px, textAlign: TextAlign.center, backgroundColor: Colors.blue, );
-
Deprecated
EdgeInsets
in favor ofPadding
andMargin
types. -
BREAKING Moved
zIndex
property out ofPosition
and directly intoStyles
. -
Added
userSelect
,pointerEvents
andcontent
properties toStyles
. -
Added
Unit.maxContent
,Unit.minContent
,Unit.fitContent
andUnit.expression()
.
jaspr_lints
- Added 'styles_ordering' lint and quick fix.