platform_utils 0.1.2 copy "platform_utils: ^0.1.2" to clipboard
platform_utils: ^0.1.2 copied to clipboard

Returns value or run a function based on Platform. If the context is passed, it will get the platform by Theme.of(context).platform. Otherwise, it will use defaultTargetPlatform.

0.1.2 #

  • Use generic type

0.1.1 #

  • Update example

0.1.0 #

  • Add example

0.0.5, 0.0.6 #

  • Update documentation.

0.0.4 #

  • Add support for Web.

0.0.1 #

  • Initial release.
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Returns value or run a function based on Platform. If the context is passed, it will get the platform by Theme.of(context).platform. Otherwise, it will use defaultTargetPlatform.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on platform_utils