platform_info 1.1.1+3 copy "platform_info: ^1.1.1+3" to clipboard
platform_info: ^1.1.1+3 copied to clipboard

outdated

Containts info about current platform such as Build mode and Operating system

platform_info #

chatroom icon MIT License Pub

About #

Cross-platform io/html package.
Works on the web, mobile phones, desktops and console.
Fully caches itself on first initialization.
Can serialize to JSON map.
Provides platform information such as:

  • Build mode

    • release
    • profile
    • debug
  • Host platform type

    • io
    • web
  • Operating system

    • Fuchsia
    • Linux
    • MacOS
    • Windows
    • iOS
    • Android
    • Unknown
  • Version

  • Locale string

  • The number of individual execution units of the machine.

  • Operating system is known type

  • Is mobile device (Android, iOS)

  • Is desktop device (Windows, MacOS, Fuchsia)

  • Is material (Android, Fuchsia)

  • Is cupertino (MacOS, iOS)

For example: #

  // Just create Platform() singleton object
  final Platform _platform = Platform();
  final String version = _platform.version;
  print(version);

Changelog #

Refer to the Changelog to get all release notes.

105
likes
40
points
11.3k
downloads

Publisher

verified publisherplugfox.dev

Weekly Downloads

Containts info about current platform such as Build mode and Operating system

Repository (GitHub)

License

MIT (license)

More

Packages that depend on platform_info