Skip to content

Use of customRender? #673

Closed Answered by DFelten
cgs asked this question in Q&A
May 13, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

You need to add wtf to the whitelist of the Html widget.

Html(
  data: "<wtf></wtf>",
  customRender: {
    "wtf": (context, c) {
      return TextSpan(text: "wtf", style: TextStyle(color: Colors.black));
     },
  },
  tagsList: [...Html.tags, 'wtf'],
),

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@cgs
Comment options

@tneotia
Comment options

Answer selected by erickok
Comment options

You must be logged in to vote
0 replies
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
4 participants