flutter-universal-platform icon indicating copy to clipboard operation
flutter-universal-platform copied to clipboard

A web-safe implementation of dart.io.Platforms. Helps avoid the "Unsupported operation: Platform._operatingSystem" runtime error.

Results 14 flutter-universal-platform issues
Sort by recently updated
recently updated
newest added

I was looking to use environment variables in Flutter but `UniversalPlatform` does not have the same properties as `Platform` from `dart:io`. Please add this support. Ref: https://api.dart.dev/stable/2.13.4/dart-io/Platform/environment.html

enhancement
good first issue

I have several issues with a lot of packages, running on the web-chrome, because of the error in the standard platform package. But this universal-platform package solves that issue. Is...

Please apply pragmas `@pragma('vm:platform-const') @pragma('vm:prefer-inline') @pragma('dart2js:prefer-inline')` to all platform related getters to improve tree-shaking and specialization of code which depends on this package.