Skip to content

Use of customRender? #673

Answered by DFelten
cgs asked this question in Q&A
May 13, 2021 · 1 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: 1 comment 2 replies

Comment options

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

@tneotia
Comment options

tneotia May 16, 2021
Collaborator

Answer selected by erickok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants