Skip to content

Commit a7984c9

Browse files
committed
readme updated v1.0.0
1 parent 3821085 commit a7984c9

File tree

4 files changed

+24
-67
lines changed

4 files changed

+24
-67
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.0
2+
3+
* iOS Support Added
4+
15
## 0.1.2
26

37
* Initial release

README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ Inline WebView in flutter using [AndroidView](https://docs.flutter.io/flutter/wi
77
# Supported
88

99
* Android
10+
* iOS
1011

1112

1213
> Note
1314
> * Keypad is not working (No Support by flutter)
1415
> * Don't use inside scrollview
1516
17+
> * onPageStarted, onPageFinished Only works with Android
18+
1619
## Screenshot
1720

1821
<img src="https://github.com/PonnamKarthik/FlutterWebView/raw/master/screenshots/1.png" alt="Screenshot" style="width:150px;"/>
@@ -23,7 +26,7 @@ Inline WebView in flutter using [AndroidView](https://docs.flutter.io/flutter/wi
2326
```yaml
2427

2528
dependencies:
26-
flutter_native_web: "^0.1.2"
29+
flutter_native_web: "^1.0.0"
2730

2831
```
2932
@@ -80,12 +83,24 @@ FlutterWebView flutterWebView = new FlutterWebView(
8083

8184
### Android
8285

83-
Ensure the following permission is present in your Android Manifest file, located in `<project root>/android/app/src/main/AndroidManifest.xml:
86+
Ensure the following permission is present in your Android Manifest file, located in project `/android/app/src/main/AndroidManifest.xml`:
8487

8588
```xml
8689
<uses-permission android:name="android.permission.INTERNET"/>
8790
```
8891

92+
### iOS
93+
94+
Opt-in to the embedded views preview by adding a boolean property to the app's `Info.plist` file
95+
with the key `io.flutter.embedded_views_preview` and the value `YES`.
96+
97+
```plist
98+
<key>io.flutter.embedded_views_preview</key>
99+
<string>YES</string>
100+
```
101+
102+
103+
89104
## Coming soon
90105

91106
* JSInterface

example/test/widget_test.dart

+1-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
// This is a basic Flutter widget test.
2-
//
3-
// To perform an interaction with a widget in your test, use the WidgetTester
4-
// utility that Flutter provides. For example, you can send tap and scroll
5-
// gestures. You can also use WidgetTester to find child widgets in the widget
6-
// tree, read text, and verify that the values of widget properties are correct.
7-
8-
import 'package:flutter/material.dart';
9-
import 'package:flutter_test/flutter_test.dart';
10-
11-
import 'package:flutter_native_web_example/main.dart';
12-
131
void main() {
14-
testWidgets('Verify Platform version', (WidgetTester tester) async {
15-
// Build our app and trigger a frame.
16-
await tester.pumpWidget(MyApp());
172

18-
// Verify that platform version is retrieved.
19-
expect(
20-
find.byWidgetPredicate(
21-
(Widget widget) => widget is Text &&
22-
widget.data.startsWith('Running on:'),
23-
),
24-
findsOneWidget,
25-
);
26-
});
27-
}
3+
}

pubspec.yaml

+2-40
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_native_web
22
description: Flutter Plugin that Renders Native Webview as a widget in flutter
3-
version: 0.1.2
3+
version: 1.0.0
44
author: Karthik Ponnam <[email protected]>
55
homepage: https://github.com/PonnamKarthik/FlutterWebView
66

@@ -11,46 +11,8 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
# For information on the generic Dart part of this file, see the
15-
# following page: https://www.dartlang.org/tools/pub/pubspec
16-
17-
# The following section is specific to Flutter.
1814
flutter:
19-
# This section identifies this Flutter project as a plugin project.
20-
# The androidPackage and pluginClass identifiers should not ordinarily
21-
# be modified. They are used by the tooling to maintain consistency when
22-
# adding or updating assets for this project.
15+
2316
plugin:
2417
androidPackage: io.github.ponnamkarthik.flutterwebview
2518
pluginClass: FlutterNativeWebPlugin
26-
27-
# To add assets to your plugin package, add an assets section, like this:
28-
# assets:
29-
# - images/a_dot_burr.jpeg
30-
# - images/a_dot_ham.jpeg
31-
#
32-
# For details regarding assets in packages, see
33-
# https://flutter.io/assets-and-images/#from-packages
34-
#
35-
# An image asset can refer to one or more resolution-specific "variants", see
36-
# https://flutter.io/assets-and-images/#resolution-aware.
37-
38-
# To add custom fonts to your plugin package, add a fonts section here,
39-
# in this "flutter" section. Each entry in this list should have a
40-
# "family" key with the font family name, and a "fonts" key with a
41-
# list giving the asset and other descriptors for the font. For
42-
# example:
43-
# fonts:
44-
# - family: Schyler
45-
# fonts:
46-
# - asset: fonts/Schyler-Regular.ttf
47-
# - asset: fonts/Schyler-Italic.ttf
48-
# style: italic
49-
# - family: Trajan Pro
50-
# fonts:
51-
# - asset: fonts/TrajanPro.ttf
52-
# - asset: fonts/TrajanPro_Bold.ttf
53-
# weight: 700
54-
#
55-
# For details regarding fonts in packages, see
56-
# https://flutter.io/custom-fonts/#from-packages

0 commit comments

Comments
 (0)