platform_detect 1.4.0
platform_detect: ^1.4.0

Dart js
Flutter web

A lightweight library for detecting the running browser and OS

Use this package as a library

1. Depend on it

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

dependencies:
  platform_detect: ^1.4.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:platform_detect/platform_detect.dart';
18
likes
95
pub points
94%
popularity

Publisher

workiva.com

A lightweight library for detecting the running browser and OS

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

meta, pub_semver

More

Packages that depend on platform_detect