Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to convert customRender to TagExtension#1320

Unanswered
Munsif-Ali asked this question inQ&A
Discussion options

i have updated the package to 3.x.x and now the customRender Property is not available and the documentation says that i can use TagExtension instead of that how can i convert this code (in this i need child and in TagExtension i don't have access to child) to TagExtension

 customRender: {"embed": (RenderContext renderContext, Widget child) {        var videoLink = renderContext.parser.htmlData.text             .splitBetween('<embed>', '</embed');       if (videoLink.contains('yout')) {             return YouTubeEmbedWidget(                 videoLink.replaceAll('<br>', '').convertYouTubeUrlToId());           } else if (videoLink.contains('vimeo')) {             return VimeoEmbedWidget(videoLink.replaceAll('<br>', ''));           } else {             return child;           }         }}
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@Munsif-Ali

[8]ページ先頭

©2009-2025 Movatter.jp