Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- packages/device_info_plus/**/*
"p: firebase_core":
- packages/firebase_core/**/*
"p: flutter_inappwebview":
- packages/flutter_inappwebview/**/*
"p: flutter_secure_storage":
- packages/flutter_secure_storage/**/*
"p: flutter_tts":
Expand Down
1 change: 1 addition & 0 deletions .github/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins:
connectivity_plus: ["tv-9.0"]
device_info_plus: ["tv-9.0"]
flutter_secure_storage: ["tv-9.0"]
flutter_inappwebview: ["tv-9.0"]
flutter_tts: ["tv-9.0"]
integration_test: ["tv-9.0"]
messageport: ["tv-9.0"]
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The _"non-endorsed"_ status means that the plugin is not endorsed by the origina
| [**connectivity_plus_tizen**](packages/connectivity_plus) | [connectivity_plus](https://pub.dev/packages/connectivity_plus) (1st-party) | [![pub package](https://img.shields.io/pub/v/connectivity_plus_tizen.svg)](https://pub.dev/packages/connectivity_plus_tizen) | No |
| [**device_info_plus_tizen**](packages/device_info_plus) | [device_info_plus](https://pub.dev/packages/device_info_plus) (1st-party) | [![pub package](https://img.shields.io/pub/v/device_info_plus_tizen.svg)](https://pub.dev/packages/device_info_plus_tizen) | No |
| [**firebase_core_tizen**](packages/firebase_core) | [firebase_core](https://pub.dev/packages/firebase_core) | [![pub package](https://img.shields.io/pub/v/firebase_core_tizen.svg)](https://pub.dev/packages/firebase_core_tizen) | No |
| [**flutter_inappwebview_tizen**](packages/flutter_inappwebview_tizen) | [flutter_inappwebview](https://pub.dev/packages/flutter_inappwebview) | [![pub package](https://img.shields.io/pub/v/flutter_inappwebview_tizen.svg)](https://pub.dev/packages/flutter_inappwebview_tizen) | No |
| [**flutter_secure_storage_tizen**](packages/flutter_secure_storage) | [flutter_secure_storage](https://pub.dev/packages/flutter_secure_storage) (3rd-party) | [![pub package](https://img.shields.io/pub/v/flutter_secure_storage_tizen.svg)](https://pub.dev/packages/flutter_secure_storage_tizen) | No |
| [**flutter_tts_tizen**](packages/flutter_tts) | [flutter_tts](https://pub.dev/packages/flutter_tts) (3rd-party) | [![pub package](https://img.shields.io/pub/v/flutter_tts_tizen.svg)](https://pub.dev/packages/flutter_tts_tizen) | No |
| [**flutter_webrtc_tizen**](packages/flutter_webrtc) | [flutter_webrtc](https://pub.dev/packages/flutter_webrtc) (3rd-party) | [![pub package](https://img.shields.io/pub/v/flutter_webrtc_tizen.svg)](https://pub.dev/packages/flutter_webrtc_tizen) | No |
Expand Down Expand Up @@ -58,6 +59,7 @@ The _"non-endorsed"_ status means that the plugin is not endorsed by the origina
| [**connectivity_plus_tizen**](packages/connectivity_plus) | ✔️ | ✔️ | ✔️ | Returns incorrect connection status |
| [**device_info_plus_tizen**](packages/device_info_plus) | ✔️ | ✔️ | ✔️ |
| [**firebase_core**](packages/firebase_core) | ✔️ | ✔️ | ✔️ |
| [**flutter_inappwebview_tizen**](packages/flutter_inappwebview_tizen) | ✔️ | ✔️ | ✔️ |
| [**flutter_secure_storage_tizen**](packages/flutter_secure_storage) | ✔️ | ✔️ | ✔️ |
| [**flutter_tts_tizen**](packages/flutter_tts) | ✔️ | ✔️ | ✔️ |
| [**flutter_webrtc_tizen**](packages/flutter_webrtc) | ✔️ | ❌ | ❌ | No camera |
Expand Down
7 changes: 7 additions & 0 deletions packages/flutter_inappwebview/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
.dart_tool/

.packages
.pub/

build/
4 changes: 4 additions & 0 deletions packages/flutter_inappwebview/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 0.1.0

- Initial release of `flutter_inappwebview_tizen`.
-
26 changes: 26 additions & 0 deletions packages/flutter_inappwebview/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2026 Samsung Electronics Co., Ltd. All rights reserved.
Copyright (c) 2017 The Chromium Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of the copyright holder nor the names of the
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
108 changes: 108 additions & 0 deletions packages/flutter_inappwebview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# flutter_inappwebview_tizen

[![pub package](https://img.shields.io/pub/v/flutter_inappwebview_tizen.svg)](https://pub.dev/packages/flutter_inappwebview_tizen)

The Tizen implementation of [`flutter_inappwebview`](https://pub.dev/packages/flutter_inappwebview).

This package follows the same EWK-backed offscreen rendering approach as
[`webview_flutter_tizen`](https://pub.dev/packages/webview_flutter_tizen) and
maps it onto the `flutter_inappwebview` platform interface. Only the surface
that maps cleanly onto the Tizen WebView (chromium-efl) is implemented; every
other API raises `UnsupportedError` (or the `UnimplementedError` produced by
the `flutter_inappwebview_platform_interface` defaults).

## Required privileges

Add the internet privilege to the app manifest:

```xml
<privileges>
<privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
```

## Usage

```yaml
dependencies:
flutter_inappwebview: ^6.1.5
flutter_inappwebview_tizen:
path: ../flutter_inappwebview_tizen
```

```dart
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

class WebViewExample extends StatelessWidget {
const WebViewExample({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
body: InAppWebView(
initialUrlRequest: URLRequest(url: WebUri('https://flutter.dev')),
initialSettings: InAppWebViewSettings(
javaScriptEnabled: true,
useShouldOverrideUrlLoading: true,
),
),
);
}
}
```

## Note

- To play Youtube(video player), make app's background color to transparent.

```diff
--- a/packages/flutter_inappwebview/example/lib/in_app_webiew_example.screen.dart
+++ b/packages/flutter_inappwebview/example/lib/in_app_webiew_example.screen.dart
@@ -105,14 +105,13 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("InAppWebView")),
+ backgroundColor: Colors.transparent,
drawer: myDrawer(context: context),
```

## Supported

- `InAppWebView` platform view
- URL/file/data loading, back/forward/reload/stop, post requests
- JavaScript evaluation
- Navigation interception via `shouldOverrideUrlLoading`
- `onLoadStart`, `onLoadStop`, `onReceivedError`, `onProgressChanged`,
`onTitleChanged`, `onConsoleMessage`, `onScrollChanged`,
`onZoomScaleChanged`, `onUpdateVisitedHistory`, and JavaScript dialog
callbacks (`onJsAlert`, `onJsConfirm`, `onJsPrompt`)
- A subset of `InAppWebViewSettings`: `javaScriptEnabled`, `supportZoom`,
`userAgent`, `transparentBackground`, and `useShouldOverrideUrlLoading`
- `clearCache`, `clearAllCache`, `getDefaultUserAgent`, `handlesURLScheme`
- `CookieManager.deleteAllCookies()`

`InAppWebViewController.getDefaultUserAgent()` returns the EWK user agent that
was captured the first time an `InAppWebView` was created in the process; the
value is cached so it remains available after every webview is disposed.
Calling it before any `InAppWebView` has been created returns an empty string.

## Not supported

The following capabilities are intentionally out of scope and raise
`UnsupportedError`/`UnimplementedError` when invoked:

- `InAppBrowser`, `HeadlessInAppWebView`, `ChromeSafariBrowser`
- `InAppWebViewKeepAlive`, popup `windowId`, context menus, pull-to-refresh
- `FindInteractionController`, `PrintJobController`, `WebMessage*`,
`WebStorage*`, `WebViewEnvironment`, `HttpAuthCredentialDatabase`
- JavaScript handlers/channels and user script injection
- Per-cookie mutation/query APIs (`setCookie`, `getCookie(s)`,
`deleteCookie(s)`)
- Resource interception, custom-scheme loading, downloads, permission and
geolocation prompts, render-process events, fullscreen, capture state,
content-size, and other callbacks not listed above
- Multi-step `goBackOrForward`/`canGoBackOrForward`/`goTo`, `isLoading`,
`getOriginalUrl`, `getSettings`, `reloadFromOrigin`, `pause`/`resume`
- DevTools, simulated requests, screenshot/PDF/web-archive capture, JS/CSS
injection, service worker / proxy / tracing / path-handler controllers
7 changes: 7 additions & 0 deletions packages/flutter_inappwebview/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include: ../../analysis_options.yaml

analyzer:
language:
strict-casts: false
strict-inference: false
strict-raw-types: false
41 changes: 41 additions & 0 deletions packages/flutter_inappwebview/example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json
7 changes: 7 additions & 0 deletions packages/flutter_inappwebview/example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# flutter_inappwebview_tizen_example

Demonstrates how to use the flutter_inappwebview_tizen plugin.

## Getting Started

To run this app on your Tizen device, use [flutter-tizen](https://github.com/flutter-tizen/flutter-tizen).
19 changes: 19 additions & 0 deletions packages/flutter_inappwebview/example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# Mirrors the upstream `flutter_inappwebview/example` configuration so the
# Tizen example can stay close to its upstream counterpart.

include: package:flutter_lints/flutter.yaml

linter:
rules:
constant_identifier_names: ignore
deprecated_member_use_from_same_package: ignore

analyzer:
errors:
deprecated_member_use: ignore
deprecated_member_use_from_same_package: ignore
unnecessary_cast: ignore
unnecessary_import: ignore
20 changes: 20 additions & 0 deletions packages/flutter_inappwebview/example/assets/www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<!-- Copyright 2013 The Flutter Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<html lang="en">
<head>
<title>Load file or HTML string example</title>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>

<h1>Local demo page</h1>
<p>
This is an example page used to demonstrate how to load a local file or HTML
string using the <a href="https://pub.dev/packages/webview_flutter">Flutter
webview</a> plugin.
</p>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
color: blue;
}
Loading
Loading