Releases: daohoangson/flutter_widget_from_html
v0.5.1+1
- Discard preferred width / height on infinity value. (#340)
- Fix image with dimensions cannot scale down (#341)
- Use a separated
BuildOp
fordisplay: block
(#342)
Deployed efa0b39 to https://api-4u2589v25.vercel.app.
Quick links:
Deployed efa0b39 to https://example-4u9svdsgi.vercel.app.
Quick links:
v0.5.1
- Add support for auto, percentage sizing (e.g.
width: 50%
) - Fix image cannot scale up (#337)
This release includes some changes that may require migration if you have a custom WidgetFactory
:
- Replace
BuildMetadata.isBlockElement
with .willBuildSubtree
. - Replace
BuildOp.isBlockElement
with.onWidgetsIsOptional
- Split display parsing into
WidgetFactory.parseStyleDisplay
TextStyleHtml.crossAxisAlignment
has been removed (no replacement)
Deployed be2c423 to https://api-4u2589v25.vercel.app.
Quick links:
Deployed be2c423 to https://example-gwh1xadoa.vercel.app.
Quick links:
v0.5.0+7
- Fix incorrect alignment of list marker (#335)
- Add support for
[email protected]
(#336)
Deployed b983a0b to https://api-4u2589v25.vercel.app.
Quick links:
Deployed b983a0b to https://example-bi5wotdp7.vercel.app.
Quick links:
v0.5.0+6
- Stop using singleton WidgetFactory by default
- Update
video_player
version constraint as suggested by publisher (#333, authored by @dgilperez)
Deployed 9334b27 to https://api-4u2589v25.vercel.app.
Quick links:
Deployed 9334b27 to https://example-lvm369scl.vercel.app.
Quick links:
v0.5.0+5
Note: The packages now require Flutter version 1.20.0
and up.
Deployed 6e97ebd to https://api-4u2589v25.vercel.app.
Quick links:
Deployed 6e97ebd to https://example-6l7y1367q.vercel.app.
Quick links:
v0.5.0+4
- Add support for [email protected] (#315)
- Add support for anchors (#317)
Note: Only flutter_widget_from_html is updated to 0.5.0+4
, flutter_widget_from_html_core stays at 0.5.0+3
.
Deployed 6137079 to https://api-4u2589v25.vercel.app.
Quick links:
Deployed 6137079 to https://example-660btp2u6.vercel.app.
Quick links:
v0.5.0
This is a big release with lots of improvements under the hood. If you don't extends WidgetFactory
yourself then there are only two changes that may affect your app:
customStylesBuilder
returnsMap
instead ofList
onTapUrl
is called for incomplete URL
Other changes:
- Restore sizing support (#248)
- Expand support for
text-align
with end/start/-moz-center/-webkit-center (#305) - Update UL bullet for correctness (#306)
- Add support for colspan / rowspan in table (#157)
- Add support for inline style
text-overflow
(#204) - Add support em/px in
line-height
and % infont-size
(#220) - Add support for svg src in
IMG
(#233) - Add support for inline
margin
,padding
(#237) - Add support for
pt
unit (#266) - Add support for inline style
background
(color only) (#275) - Bug fixes
Finally, BREAKING changes if you use a custom WidgetFactory
:
BuildOp
: callback params changedBuiltPiece
has been removedNodeMetadata
->BuildMetadata
TextBit
->BuildBit
TextStyleBuilders
->TextStyleBuilder
WidgetFactory
- All
buildXxx
methods now haveBuildMetadata
as first parameter parseTag(NodeMetadata, String, String)
->parse(BuildMetadata)
- All
Deployed ccb7c56 to https://api-4u2589v25.vercel.app.
Quick links:
Deployed ccb7c56 to https://example-gcf8qsptk.vercel.app.
Quick links:
v0.5.0-rc.2020081901
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:
customStylesBuilder
returnsMap
instead ofList
- BREAKING:
onTapUrl
is called for incomplete URL
Other changes:
- Add support for
pt
unit (#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
textScaleFactor
being 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
->buildOps
parents
->parentOps
op=
->register(BuildOp)
style
->operator [](String)
styles=
->operator []=(String, String)
- Text style properties moved into
TableData
->TableMetadata
TextBit
- Remove
TextWhitespace
,TextWhitespaceType
- Remove
data
- Remove
canCompile
- Remove
hasTrailingWhitespace
(TextBits
still 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
WidgetFactory
buildXxx
methods haveBuildMetadata
as first parameterbuildImageXxx
->imageXxx
buildGestureTapCallbackForUrl
->gestureTapCallback
parseTag(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:
v0.4.3
v0.5.0-rc.2020071301
- BREAKING: Remove 3rd param
wf
fromWidgetPlaceholder.wrap
- BREAKING: Remove field
HtmlWidget.tableCellPadding
- BREAKING: Remove class
CssLineHeight
- BREAKING: Remove class
ImageLayout
(#230) - BREAKING: Change param
builder
ofTextStyleBuilders.enqueue
- BREAKING: Change method
WidgetFactory.buildImage
- Add support for colspan / rowspan in table (#157)
- Add support for inline style
text-overflow
(#204) - Add support for inline style sizing (#206):
width
,height
,max-width
,max-height
,min-width
andmin-height
- Add support em/px in
line-height
and % infont-size
(#220) - Add support for svg src in
IMG
(#233) - Bug fixes