easy_web_view
Flutter Web 視圖在行動裝置與 Web 上輕鬆實現!
- 星標
- 181
- 分支
- 97
- 最近推送(UTC)
- 2024年8月21日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
easy_web_view
Easy Web Views in Flutter on Web, Mobile and Desktop*!
- Supports HTML Content or a Single Element
- Supports Markdown Source
- Supports convert to Flutter widgets
- Supports remote download of url
- Markdown -> Html
- Html -> Markdown
- Supports change in url
- Selectable Text
- Supports multiple views on the same screen if you provide a unique key
Online Demo: https://rodydavis.github.io/easy_web_view
Platforms
- [X] Web
- [X] Android
- [X] iOS
- [X] MacOS
- [X] Windows
- [ ] Linux
Getting Started
For Loading a new url or changing width/height just call setState!
EasyWebView(
src: src,
isHtml: false, // Use Html syntax
isMarkdown: false, // Use markdown syntax
convertToWidgets: false, // Try to convert to flutter widgets
// width: 100,
// height: 100,
)
iOS/MacOS/Android
Follow setup: https://pub.dev/packages/webview_flutter
Windows
Follow setup: https://pub.dev/packages/webview_windows
Screenshots


語言DartHTMLC++CMakeRubySwiftCKotlinObjective-C
分類
使用的依賴
依賴清單 12 項
- flutter
{"sdk":"flutter"} - flutter_markdown
^0.7.3+1 - flutter_widget_from_html
^0.15.1 - html2md
^1.2.5 - http
^1.2.2 - markdown
^7.2.2 - permission_handler
^11.3.1 - url_launcher
^6.0.12 - webview_flutter
^4.9.0 - webview_windows
^0.4.0 - flutter_test開發依賴
{"sdk":"flutter"} - flutter_lints開發依賴
^4.0.0
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
