嵌入颤振

时间:2019-06-08 16:37:31

标签: twitter flutter oembed

这是我们如何在Flutter中显示网页视图网址的方法。

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return WebviewScaffold(
        appBar: AppBar(
          title: Text('Browser'),
        ),
        url: "https://twitter.com/gowithkel/status/1137024385229950976");
  }
}

但是如何将Twitter微博嵌入到颤动中?例如,显示一个以预埋格式显示的推特推文:

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Sunsets 
don&#39;t get much better than this one over <a 
href="https://twitter.com/GrandTetonNPS? 
ref_src=twsrc%5Etfw">@GrandTetonNPS</a>. <a 
href="https://twitter.com/hashtag/nature? 
src=hash&amp;ref_src=twsrc%5Etfw">#nature</a> <a 
href="https://twitter.com/hashtag/sunset? 
src=hash&amp;ref_src=twsrc%5Etfw">#sunset</a> <a 
href="http://twitter.com/YuKy2rcjyU">pic.twitter.com/YuKy2rcjyU</a></p>&mdash; 
US Department of the Interior (@Interior) <a 
href="https://twitter.com/Interior/status/463440424141459456? 
ref_src=twsrc%5Etfw">May 5, 2014</a></blockquote> <script async 
src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

0 个答案:

没有答案