os_type 0.2.2 copy "os_type: ^0.2.2" to clipboard
os_type: ^0.2.2 copied to clipboard

Useful for OS and web environment detection, supports HarmonyOS.

0.2.2 #

  • Fixed web plugin registration parameters

  • Updated README

0.2.1 #

  • Fixed unused parameter warning in web plugin registration method
  • When initializing HarmonyOS device type in web environment or when the initialization result of HarmonyOS device type is null, use log instead of throwing an exception, with a default result of 2in1 to ensure normal operation

0.2.0 #

  • Fix plugin registration error

0.1.0 #

  • Downgrade SDK version limit
  • Add example code to README
  • Optimize platform detection logic

0.0.1 #

  • Initial release of the os_type plugin
  • Support for detecting various operating systems including HarmonyOS
  • Added method channel implementation for native platform communication
  • Implemented platform interface for cross-platform compatibility
  • Added example project demonstrating usage
  • Support for detecting PC vs mobile operating systems
  • Special handling for HarmonyOS device types initialization
  • Optimized platform detection logic
0
likes
160
points
219
downloads

Publisher

unverified uploader

Weekly Downloads

Useful for OS and web environment detection, supports HarmonyOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on os_type

Packages that implement os_type