Skip to content

Releases: daohoangson/flutter_widget_from_html

v0.5.1+1

11 Oct 07:24
Compare
Choose a tag to compare
  • Discard preferred width / height on infinity value. (#340)
  • Fix image with dimensions cannot scale down (#341)
  • Use a separated BuildOp for display: 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

06 Oct 06:44
Compare
Choose a tag to compare
  • 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

04 Oct 17:33
Compare
Choose a tag to compare

Deployed b983a0b to https://api-4u2589v25.vercel.app.

Quick links:

Deployed b983a0b to https://example-bi5wotdp7.vercel.app.

Quick links:

v0.5.0+6

30 Sep 08:48
Compare
Choose a tag to compare
  • 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

24 Sep 07:07
Compare
Choose a tag to compare
  • Use Stack.clipBehavior instead of .overflow (#321, authored by @bahador)

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

23 Sep 06:44
Compare
Choose a tag to compare

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

08 Sep 06:08
Compare
Choose a tag to compare

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 returns Map instead of List
  • 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 % in font-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 changed
  • BuiltPiece has been removed
  • NodeMetadata -> BuildMetadata
  • TextBit -> BuildBit
  • TextStyleBuilders -> TextStyleBuilder
  • WidgetFactory
    • All buildXxx methods now have BuildMetadata as first parameter
    • parseTag(NodeMetadata, String, String) -> parse(BuildMetadata)

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

19 Aug 08:38
Compare
Choose a tag to compare
v0.5.0-rc.2020081901 Pre-release
Pre-release

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 returns Map instead of List
  • 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 changed
  • ImgMetadata -> ImageMetadata:
    • Add ImageSource
  • 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)
  • 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) -> instance TextBit next()
  • TextStyleBuilders -> TextStyleBuilder:
    • Builder signature TextStyleHtml Function(BuildContext, TextStyleHtml, T) -> TextStyleHtml Function(TextStyleHtml, T)
  • WidgetFactory
    • buildXxx methods have BuildMetadata as first parameter
    • buildImageXxx -> 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

05 Aug 04:14
Compare
Choose a tag to compare
  • Implement proper inline support for margin and padding (#237)
  • Rollback support for sizing
  • Make NodeMetadata.(op|styles) ignore null

v0.5.0-rc.2020071301

13 Jul 15:19
Compare
Choose a tag to compare
v0.5.0-rc.2020071301 Pre-release
Pre-release
  • BREAKING: Remove 3rd param wf from WidgetPlaceholder.wrap
  • BREAKING: Remove field HtmlWidget.tableCellPadding
  • BREAKING: Remove class CssLineHeight
  • BREAKING: Remove class ImageLayout (#230)
  • BREAKING: Change param builder of TextStyleBuilders.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 and min-height
  • Add support em/px in line-height and % in font-size (#220)
  • Add support for svg src in IMG (#233)
  • Bug fixes