browser_detect 1.0.4

Browser Detect

A package that detects the browser being used to view a web page. Useful for blanket browser detection. If possible, try to use feature detection over this approach.

Usage

Import the Browser Detect package.

import 'package:browser_detect/browser_detect.dart';

Use the library's browser field to query for information about the detected browser. This field contains properties for checking the browser type and version.

if (browser.isIe && browser.version <= "9") {
  // Do something.
}

1. Depend on it

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

dependencies:
  browser_detect: "^1.0.4"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:browser_detect/browser_detect.dart';

Platforms

Web

About

A library that provides information about the user's web browser.

Author

Dan Schultz

Homepage

www.github.com/danschultz/browser_detect.dart

Documentation

www.dartdocs.org/documentation/browser_detect/1.0.4/

Uploader

schultz.t.dan@gmail.com

License

BSD (LICENSE)

Published

Mar 2, 2016