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

Currently `currentUniversalPlatform` is internal to the `universal_platform.dart` package, requiring the use of the `UniversalPlatform.isXXX` booleans. It would be useful if `currentUniversalPlatform` was exported so that apps could use a switch...

NOTE: This update isn't checked (I don't have an AppleTV) Added getters to check if is a tv. Thanks to @rsanjuan87 and @DenisovAV: [https://github.com/gskinnerTeam/flutter-universal-platform/pull/24/files](https://github.com/gskinnerTeam/flutter-universal-platform/pull/24/files) [https://github.com/DenisovAV/flutter_tv/blob/master/lib/ui/widgets/platform.dart](https://github.com/DenisovAV/flutter_tv/blob/master/lib/ui/widgets/platform.dart)

With the availability of Flutter 2, it would be hugely beneficial if the package could detect if it was running within a web browser on a mobile OS. Thus allowing...

Please add `UniversalPlatform.isFlutter` to check if app running on web with Flutter or just dart2js.

Adding isMobile as an alias for isIos || isAndroid could make some reading easier. I'd gladly submit a PR if I knew it would actually be eventually merged but the...

Please add tags to make the code behind released versions traceable.

The repository is out of sync with the version on pub dev.. I wanted to fix https://github.com/gskinnerTeam/flutter-universal-platform/issues/16 but it's a bit messy to add code that exists already on another...

When running tests, either using `variant: TargetPlatformVariant.mobile()` or `debugDefaultTargetPlatformOverride` does not cooperate with UniversalPlatform. Can you add a method, something like `testUniversalPlatformOverride = targetPlatformType` to set a platform type for...

enhancement