Flutter Youtube embed allowfullscreen在颤振的TeXView中不工作
我需要显示一个youtube视频,以及其中的描述,其中包含数学公式。一切正常。但问题是allowfullscreen在TexView中不工作。我需要全屏功能。如何克服这个问题? 我用过 我的做法就像是吼叫:Flutter Youtube embed allowfullscreen在颤振的TeXView中不工作,flutter,flutter-web,Flutter,Flutter Web,我需要显示一个youtube视频,以及其中的描述,其中包含数学公式。一切正常。但问题是allowfullscreen在TexView中不工作。我需要全屏功能。如何克服这个问题? 我用过 我的做法就像是吼叫: child: TeXView( child: TeXViewDocument("""<div style="text-align: center;"><iframe allowfullscreen="allow
child: TeXView(
child: TeXViewDocument("""<div style="text-align: center;"><iframe allowfullscreen="allowfullscreen" frameborder="0" mozallowfullscreen="mozallowfullscreen" msallowfullscreen="msallowfullscreen" oallowfullscreen="oallowfullscreen" scrolling="no" src="https://www.youtube.com/embed/2No_CMrxBe8" style="width: 100vw; height: calc(100vw/1.77);" webkitallowfullscreen="webkitallowfullscreen"></iframe></div>""",
style: TeXViewStyle(
textAlign: TeXViewTextAlign.Justify,
backgroundColor: Colors.indigo[50].withOpacity(.8),
)),
),
child:TeXView(
子项:TeXViewDocument(“”),
样式:TeXViewStyle(
textAlign:TeXViewTextAlign.Justify,
背景色:Colors.indigo[50]。不透明度为(.8),
)),
),
您将尝试在颤振网络中轻松浏览。
Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
color: myColor.white,
alignment: Alignment.center,
child: EasyWebView(
src: widget.url,
isHtml: false, // Use Html syntax
isMarkdown: false, // Use markdown syntax
onLoaded: () { }, // Try to convert to flutter widgets
),
),