FLUTTER ECOSYSTEM

hisaichi5518/native_webview

一個允許您新增內嵌式 WebView 的 Flutter 插件。

原生_webview 專案封面
Stars
52
Forks
21
最近推送(UTC)
2022年11月30日
專案狀態
未封存
hisaichi5518 GitHub avatar
GITHUB User

hisaichi5518 ↗

#dart #flutter #golang #swift #kotlin #java #android #ruby #perl

Tokyo, Japan官方網站 ↗
語言DartKotlinSwiftJavaRubyObjective-CShellMakefileHTML

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • pedantic開發依賴^1.11.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

native_webview Pub Version

A Flutter plugin that allows you to add an inline WebView.

Motivation

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.

Requirements

  • Dart: >=2.10.0 <3.0.0
  • Flutter: >=1.22.0 <2.0.0
  • Android: minSdkVersion 24, AndroidX, Kotlin, Chrome version >= 74.0.3729.185
  • iOS: iOS version >= 11.0, Xcode version >= 11, Swift

Getting Started

Usage
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.

Known issues

Run tests

  • There are tests in `example/integration_test/tests
  • You will need to launch the iOS simulator or Android emulator
make test