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 ↗
