Skip to content

V-2.3.0

Choose a tag to compare

@CatHood0 CatHood0 released this 04 Mar 20:51
· 46 commits to master since this release

What's changed

  • Fix: issues related with detecting storage images.
  • Fix: issues related with ThemeData from PDF not being applied to the pdf document.
  • Fix: issues related with the font size of the ThemeData not being applied as expected.
  • Fix: wrong default code-block widget.
  • Fix: wrong default list widget.
  • Fix: issue where the default leading of ordered lists is not being computed correctly.
  • Fix: wrong behavior if textDirection is passed in PDFConverter.
  • Fix: bad rendering of content elements by not await for _applyBlockAttributes() in PDFService class.
  • Fix(partially): bad rendering of content elements when directionality is RTL.
  • Chore(breaking changes): reorganized project structure.
  • Chore: deprecated createDocumentFile since we cannot manage the errors with file permissions.
  • Chore: deprecated blockquotePaddingLeft and blockquotePaddingRight and replaced with blockquotePadding.
  • Chore: deprecated blockquoteDividerColor replaced with blockquoteBoxDecoration.
  • Chore(breaking changes): renamed blockQuotethicknessDividerColor to blockquotethicknessDividerColor.
  • Chore(breaking changes): renamed blockQuoteBackgroundColor to blockquoteBackgroundColor.
  • Chore(breaking changes): renamed blockQuoteTextStyle to blockquoteTextStyle.
  • Chore(breaking changes): renamed IMAGE_FROM_URL_PATTERN to kDefaultImageUrlDetector in Constant class.
  • Chore: renamed _applyBlockAttributes() to _defaultLineBuilderForBlocks() in PDFService class.
  • Chore: renamed _applyInlineParagraph() to _defaultLineBuilderForInlines() in PDFService class.
  • Chore: deprecated fixCommonErrorInsertsInRawDelta and isTotallyEmpty methods since them are not longer used into the project.
  • Chore: moved embed implementation to _defaultEmbedLineBuilder() in PDFService class.
  • Chore: created _applyCustomBlocks() to add all the necessary logic for add custom widgets from the custom callbacks in PDFService class.
  • Chore(breaking changes): renamed md_extension file to header_level_extension in extensions.
  • Chore(breaking changes): renamed MdHeaderLevelExtension to HeaderLevelResolverExtension in extensions.
  • Chore(doc): added customization documention (only partially).
  • Chore(breaking changes): added extraArgs param to all PDFWidgetBuilder.
  • Chore: deprecated IMAGE_LOCAL_STORAGE_PATH_PATTERN since only works for android devices.
  • Chore: deprecated DeltaAttributesOptions, overrideAttributesPassedByUser, deltaOptionalAttr and shouldProcessDeltas in PDFConverter, since its implementation is not needed for the current target of the package.
  • Feat: added isFromLocalStorage method to detect is the input passed is a storage path.
  • Feat: added onDetectImageUrl to allow us create our custom implementation for get bytes from a external url.
  • Feat: added imageConstraints to create a default width and height for images when them has not that attributes specified.
  • Feat: added support for custom code-block highlighting theme using customCodeHighlightTheme. Check about highlight_utils.
  • Feat: added support for build error images using onDetectErrorInImage.
  • Feat: added support for build video widgets onDetectVideoBlock.
  • Feat: added support for build a custom TextStyle for inline-code fragments using inlineCodeStyle.
  • Feat: added support for build custom leading widgets for lists using listLeadingBuilder.
  • Feat: added support for code-block highlighting using enableCodeBlockHighlighting and isLightMode.
  • Feat: added support for custom heading sizes using customHeadingSizes.
  • Feat: added support for switch between the different versions of the default list blocks using listTypeWidget.

Full Changelog: V-2.2.9...V-2.3.0