在 Flutter for Web 應用程序中嵌入網頁作為 Widget(類似於 iframe) (Embed a web page as a Widget inside Flutter for Web application (similar to iframe))


問題描述

在 Flutter for Web 應用程序中嵌入網頁作為 Widget(類似於 iframe) (Embed a web page as a Widget inside Flutter for Web application (similar to iframe))

我基本上是在尋找適用於 Flutter for Web 的小部件,它允許您將網站作為小部件嵌入到應用程序中。

這與 嵌入式 Youtube 視頻小部件在網頁(由 Flutter for Web 創建)時消失向上或向下滾動


參考解法

方法 1:

you need to use IFrameElement.

here you can find a good explanation of how to do it.

(by Andrewcpunader)

參考文件

  1. Embed a web page as a Widget inside Flutter for Web application (similar to iframe) (CC BY‑SA 2.5/3.0/4.0)

#flutter-web #Flutter






相關問題

在 Flutter for Web 應用程序中嵌入網頁作為 Widget(類似於 iframe) (Embed a web page as a Widget inside Flutter for Web application (similar to iframe))

在 Flutter Web 中顯示選定的圖像 (Display selected image in Flutter Web)

如何在flutter_web中收集文本輸入 (How to collect text input in flutter_web)

已部署的 Web 應用程序仍會在 Chrome javascript 控制台 Flutter 中打印所有註釋掉的打印語句 (Deployed web app still prints all commented out prints statements in Chrome javascript console Flutter)

Flutter 網頁黑屏 (Flutter web blank screen)

內容未顯示在瀏覽器上 (Content not showing on browser On flutter web)

我如何重新創建顫振神社屏幕 ui(水平滾動) (how can i recreate flutter shrine screen ui (horizontal scroling))

Flutter Web 下載文件在移動瀏覽器中不起作用 (Flutter Web Download File not function in Mobile Browser)

Flutter:如何僅在滾動後顯示 AppBar? (Flutter: How to show AppBar only after scrolling?)

如何使用顫振將網頁分成 3 個可滾動部分? (How to divide a webpage into 3 scrollable parts using flutter?)

運行 Flutter Web 項目 lib/generated_plugin_registrant.dart:16:3 時出錯:錯誤:找不到 Getter:'AnotherFlushbarPlugin' (Error while running Flutter Web Project lib/generated_plugin_registrant.dart:16:3: Error: Getter not found: 'AnotherFlushbarPlugin')

Flutter:ChangeNotifierProxyProvider:未提供更新的正確狀態 (Flutter: ChangeNotifierProxyProvider: not providing updated correct state)







留言討論