user_environment 1.0.1 copy "user_environment: ^1.0.1" to clipboard
user_environment: ^1.0.1 copied to clipboard

Dart 1 only

User environment detection

travis build

User Environment #

This package allows to detect the platform and the browser version used to view a web page.

Differentiated browsers are: IE, Edge, Chrome, Safari, Firefox, Opera, Electron, Other along with Mac, Windows and Other platforms.

Usage #

  import 'package:user_environment/user_environment.dart';
  void main() {
    UserEnvironment env = UserEnvironmentFactory();
    print([
      env.browser.type,
      env.browser.version?.value,
      env.browser.getFeatureVersion('AppleWebKit'),
      env.platform.type
    ]);
  }

Running tests #

pub serve test pub run test -p chrome

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

User environment detection

Homepage
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

browser_detect, js

More

Packages that depend on user_environment