cross_platform 2.0.0 copy "cross_platform: ^2.0.0" to clipboard
cross_platform: ^2.0.0 copied to clipboard

Cross platform package that unifies the work with Platform and wrapps dart:io Platform and dart:html to determine platform of the host machine.

cross_platform #

Build Pub GitHub GitHub stars

Cross platform package that unifies the work with Platform and wrapps dart:io Platform and dart:html to determine platform of the host machine.

Getting Started #

  • Platform.isWeb - gets whether host platform is web based or not.

  • Platform.isAndroid - gets whether this app is running on Android or not.

  • Platform.isIOS - gets whether this app is running on iOS or not.

  • Platform.isMobile - gets whether this app is running on iOS/Android or not.

  • Platform.isMacOS - gets whether this app is running on MacOS or not.

  • Platform.isLinux - gets whether this app is running on Linux or not.

  • Platform.isWindows - gets whether this app is running on Windows or not.

  • Platform.isDesktop - gets whether this app is running on MacOS/Linux/Windows or not.

  • Platform.isFuchsia - gets whether this app is running on Fuchsia or not.

Feature requests and Bug reports #

Feel free to post a feature requests or report a bug here.

7
likes
140
pub points
63%
popularity

Publisher

verified publisherthisismarch.dev

Cross platform package that unifies the work with Platform and wrapps dart:io Platform and dart:html to determine platform of the host machine.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on cross_platform