Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter Youtube embed allowfullscreen在颤振的TeXView中不工作_Flutter_Flutter Web - Fatal编程技术网

Flutter Youtube embed 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

我需要显示一个youtube视频,以及其中的描述,其中包含数学公式。一切正常。但问题是allowfullscreen在TexView中不工作。我需要全屏功能。如何克服这个问题?

我用过

我的做法就像是吼叫:

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
        ),
    ),