FLUTTER ECOSYSTEM

rodydavis/easy_web_view

Flutter Web 视图在移动设备和 Web 上轻松实现!

easy_web_view 项目封面
Stars
181
Forks
97
最近推送(UTC)
2024年8月21日
项目状态
未归档
Rody Davis GitHub avatar
GITHUB User

Rody Davis ↗

Senior Developer Relations Engineer @google @google-deepmind supporting @google-antigravity

@GoogleSan Francisco, CA官方网站 ↗
语言DartHTMLC++CMakeRubySwiftCKotlinObjective-C

技术话题

使用的依赖

依赖清单 12 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Buy Me A Coffee Donate github pages GitHub stars easy_web_view

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

https://github.com/rodydavis/easy_web_view/blob/master/doc/screenshots/mobile.png?raw=true https://github.com/rodydavis/easy_web_view/blob/master/doc/screenshots/web.png?raw=true https://github.com/rodydavis/easy_web_view/blob/master/doc/screenshots/windows.png?raw=true