v1.4.0
native_webview
一個在 Android 和 iOS 上提供 WebView 小部件的 Flutter 插件。
29喜歡 89近 30 天下載130Pub 分數
AndroidiOS
一個允許您新增內嵌式 WebView 的 Flutter 插件。
{"sdk":"flutter"}{"sdk":"flutter"}^1.11.0以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter plugin that allows you to add an inline WebView.
There is already a useful library for working with WebViews in Flutter.
These libraries come with trade-offs such as simple implementation but lack features, or very advanced features and complex implementation.
native_webview is designed to provide users with a standard set of WebView features provided by iOS and Android while keeping the implementation simple.
class InitialUrlScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Initial URL"),
),
body: WebView(
initialUrl: "https://flutter.dev",
),
);
}
}
If you want to see other examples, see example or see DartDoc.
make test