Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[Question] How to add custom tags with custom style in V3 #1263

Closed Haller-Tanzmeier closed 1 year ago

Haller-Tanzmeier commented 1 year ago

Hi there, I dont understand, how to migrate my tagsList and custom styles for these tags to version "3.0.0-beta.1" Currently i have it like this:

`style:{'warn': Style( margin: Margins.zero, padding: EdgeInsets.zero, fontSize: FontSize(14), fontWeight: FontWeight.w600, color: getThemeProp(THEME_PROP.ErrorColor), textDecoration: TextDecoration.none, height: Height(1.5)) }

tagsList: Html.tags..addAll(["warn"]), `

Bu i dont get how to implement the same logic in V3. Any help would be much apprechiated.

Thank you

Haller-Tanzmeier commented 1 year ago

uneccesary question