webview_version 0.0.2 webview_version: ^0.0.2 copied to clipboard
A flutter plugin to get webview version installed on the device.
webview_version #
This plugin allows Flutter Android apps to detect currently running webview package & version. In addition it exposes a method to open Google Play Store.
Platform Support #
Android | iOS | MacOS | Web | Linux | Windows |
---|---|---|---|---|---|
✔️ | -️ | -️ | -️ | -️ | -️ |
Usage #
Sample usage to check current status:
import 'package:webview_version/webview_version.dart';
String webviewVersion;
try {
_version = await WebviewVersion.getWebviewVersion;
_name = await WebviewVersion.getWebViewPackage;
webviewVersion = "$_name:$_version";
} on PlatformException {
webviewVersion = 'Failed to get webview version.';
}