Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hisaichi5518/native_webview
A Flutter plugin that allows you to add an inline WebView.
https://github.com/hisaichi5518/native_webview
android dart flutter flutter-package flutter-plugin flutter-webview inline-webview ios kotlin plugin swift webview
Last synced: 3 months ago
JSON representation
A Flutter plugin that allows you to add an inline WebView.
- Host: GitHub
- URL: https://github.com/hisaichi5518/native_webview
- Owner: hisaichi5518
- License: other
- Created: 2020-02-20T13:45:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T14:44:55.000Z (about 2 years ago)
- Last Synced: 2024-10-11T21:21:17.497Z (4 months ago)
- Topics: android, dart, flutter, flutter-package, flutter-plugin, flutter-webview, inline-webview, ios, kotlin, plugin, swift, webview
- Language: Dart
- Homepage: https://pub.dev/packages/native_webview
- Size: 441 KB
- Stars: 52
- Watchers: 4
- Forks: 18
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# native_webview [![Pub Version](https://img.shields.io/pub/v/native_webview)](https://pub.dev/packages/native_webview)
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
```dart
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](./example) or see DartDoc.
## Known issues
- [Bad hybrid composition performance on Android](https://github.com/flutter/flutter/issues/62303)
## Run tests
- There are tests in `example/integration_test/tests
- You will need to launch the iOS simulator or Android emulator```
make test
```