Webview

A newer version of this documentation is available. Switch to the latest version docs.

A plugin to use Contentsquare in webview_flutter webviews.

This plugin supports Android and iOS.

This plugin exposes a custom implementation of the Webview tracking feature which tracks webview_flutter package webviews without having to implement the tracker again.

This package is not required to track these webviews but offers a convenient wrapper around the base ContentsquareWebViewTrackerBuilder class.

This package relies on the Contentsquare Flutter plugin, and does not need any additional configuration.

Add the contentsquare_webview_flutter package in your pubspec.yaml:

pubspec.yaml
dependencies:
flutter:
sdk: flutter
contentsquare_webview_flutter: ^2.1.0

then run

Terminal window
flutter pub get
final _webViewController = WebViewController();
[...]
ContentsquareWebViewFlutterTrackerBuilder(
webViewController: _webViewController,
onTrackingReady: () => _webViewController.loadRequest(Uri.parse(url)),
child: WebViewWidget(controller: _webViewController),
)

Each version of the Contentsquare Webview Flutter plugin is related to a version of the third party plugin webview_flutter.

Contentsquare WebView Flutter Versionwebview_flutter VersionContentsquare Flutter Plugin Version
2.1.0^4.0.0^2.3.0
2.0.0^4.0.0^2.0.0
1.0.0^3.0.0^1.3.2