multi_inappwebview 0.0.4 icon indicating copy to clipboard operation
multi_inappwebview: ^0.0.4 copied to clipboard

multiple webview of flutter_inappwebview

Features #

MultiInAppWebView is allow you to use multiple flutter_inappwebview instance where open a new web page link.

Getting started #

Add this to your package's pubspec.yaml file:

dependencies:
  multi_inappwebview: ^0.0.2

Usage #

see /example folder.

import 'package:multi_inappwebview/multi_inappwebview.dart';


 @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: MultiInAppWebView(
              initialUrlRequest:
                  URLRequest(url: Uri.tryParse('https://mall.lookingpet.com/')),
              maxNewWindow: 3,
              shouldOpenNewWindow: (uri) {
                if (uri.host != 'mall.lookingpet.com') {
                  return true;
                }
                return false;
              },
            )
      ),
    );
  }
0
likes
90
pub points
17%
popularity

Publisher

unverified uploader

multiple webview of flutter_inappwebview

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

event_bus, flutter, flutter_inappwebview, fluttertoast

More

Packages that depend on multi_inappwebview