Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;
              },
            )
      ),
    );
  }

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages