platform_plus 1.1.1 copy "platform_plus: ^1.1.1" to clipboard
platform_plus: ^1.1.1 copied to clipboard

Platform Plus is a package for easily figuring out information about the platform your code is running on

example/main.dart

import 'package:platform_plus/platform_plus.dart';

void someCode() async {
  if (platform.isAndroidNative) {
    // Do something
  } else if (platform.isAndroidWeb) {
    // Do something else
  }

  if (await platform.isPhysicalDevice()) {
    // Do something
  }
}
13
likes
150
pub points
82%
popularity

Publisher

verified publisherrexios.dev

Platform Plus is a package for easily figuring out information about the platform your code is running on

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

browser_detector, device_info_plus, flutter

More

Packages that depend on platform_plus