platform_os 1.0.2 copy "platform_os: ^1.0.2" to clipboard
platform_os: ^1.0.2 copied to clipboard

It also supports the web with packages that return widgets depending on the platform OS.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add platform_os

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  platform_os: ^1.0.2

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

Import it

Now in your Dart code, you can use:

import 'package:platform_os/platform_os.dart';
1
likes
150
points
25
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

It also supports the web with packages that return widgets depending on the platform OS.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on platform_os