multi_inappwebview 0.0.4 copy "multi_inappwebview: ^0.0.4" to clipboard
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
60
pub points
0%
popularity

Publisher

unverified uploader

multiple webview of flutter_inappwebview

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

event_bus, flutter, flutter_inappwebview, fluttertoast

More

Packages that depend on multi_inappwebview