gskinnerTeam / flutter-universal-platform

A web-safe implementation of dart.io.Platforms. Helps avoid the "Unsupported operation: Platform._operatingSystem" runtime error.
MIT License
108 stars 29 forks source link

Update universal_platform.dart #24

Closed rsanjuan87 closed 9 months ago

rsanjuan87 commented 2 years ago

added direct checkers for apple device, mobile device and desktop+web OR combinations

Solve https://github.com/gskinnerTeam/flutter-universal-platform/issues/23 https://github.com/gskinnerTeam/flutter-universal-platform/issues/16

sergsavchuk commented 9 months ago

@rsanjuan87 @phildupuis Hello, it looks like there is a missing line in this commit:

static bool get isDesktop => UniversalPlatform.isLinux || UniversalPlatform.isWindows || UniversalPlatform.isMacOS;