This is a big release with lots of improvements under the hood, probably the last pre-release before v0.5.0 stable is out. If you don't extends WidgetFactory yourself then there are only two BREAKING changes that may affect your app:
- BREAKING:
customStylesBuilderreturnsMapinstead ofList - BREAKING:
onTapUrlis called for incomplete URL
Other changes:
- Add support for
ptunit (#266) - Add support for inline style
background(color only) (#275) - Implement inline support for
margin,padding(#237) - Fix sizing (width, heigh, etc. #248)
- Fix bug
textScaleFactorbeing considered twice during rendering (#267) - Fix widget tree not being updated on dependency changes (#284)
Finally, BREAKING changes if you have a custom WidgetFactory:
BuildOp: callback params changedImgMetadata->ImageMetadata:- Add
ImageSource
- Add
NodeMetadata->BuildMetadata:- Text style properties moved into
TextStyleHtml - Remove
hasOps - Remove
hasParents ops->buildOpsparents->parentOpsop=->register(BuildOp)style->operator [](String)styles=->operator []=(String, String)
- Text style properties moved into
TableData->TableMetadataTextBit- Remove
TextWhitespace,TextWhitespaceType - Remove
data - Remove
canCompile - Remove
hasTrailingWhitespace(TextBitsstill has it) InlineSpan compile(TextStyle)->CompileTo compile(CompileFrom)static TextBit TextBit.nextOf(TextBit)-> instanceTextBit next()
- Remove
TextStyleBuilders->TextStyleBuilder:- Builder signature
TextStyleHtml Function(BuildContext, TextStyleHtml, T)->TextStyleHtml Function(TextStyleHtml, T)
- Builder signature
WidgetFactorybuildXxxmethods haveBuildMetadataas first parameterbuildImageXxx->imageXxxbuildGestureTapCallbackForUrl->gestureTapCallbackparseTag(NodeMetadata, String, String)->parse(BuildMetadata)
WidgetPlaceholder- Constructor changed
- Builder signature
Iterable<Widget> Function(BuildContext, Iterable<Widget>, T)->Widget Function(BuildContext, Widget)
Deployed a31439f to https://example-1aak9kx3q.vercel.app.
Quick links:
Deployed a31439f to https://api-ldqgf9mq8.vercel.app.
Quick links:
Deployed a31439f to https://document-pujtpc5qb.vercel.app.
Quick links: