webview_without_view 1.0.6 copy "webview_without_view: ^1.0.6" to clipboard
webview_without_view: ^1.0.6 copied to clipboard

discontinued
PlatformAndroid

A flutter plugin which allows the usage of the android webkit API without needing to display anything.

Introduction #

A flutter plugin which allows the usage of the android webkit API without needing to display anything.

Setup #

Android #

  • The following permission has to be added to your AndroidManifest.xml.
<uses-permission android:name="android.permission.INTERNET" />

IOS #

  • Not yet implemented, because I currently do not have access to a machine running MacOS.

Usage #

  1. The plugin has to be initialized before being able to use it. It is advised to do this in the main function, before the runApp function is called.
import 'package:flutter/material.dart';
import 'package:webview_without_view/webview_without_view.dart' as webview;

import 'home_page.dart';


Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await webview.initialize();

  runApp(HomePage());
} 

  1. After successfully initializing the webview_without_view plugin, you can load a page and retrieve the HTML source, if you wish to. (See the example app for more information)

  2. When you are done with using the functions from webview_without_view, call dispose.

  @override
  void dispose() {
    webview.dispose();
    super.dispose();
  }
0
likes
150
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin which allows the usage of the android webkit API without needing to display anything.

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on webview_without_view