platformx 1.0.1
platformx: ^1.0.1 copied to clipboard
Lightweight platform checking utility for Flutter. Works for all platforms.
PlatformX #
A multi-platform lightweight tool which helps you check the platform your app is running on.
Example #
| Android | Web |
|---|---|
![]() |
![]() |
Usage #
Include platformx as a dependency into your project.
There are 2 ways to use this:
-
Version 1:
PlatformX.platformThis will return a
PlatformEnumwhich is the platform your app is currently running on.
-
Version 2:
PlatformX.is[Android/IOS/Web/Windows/Linux/MacOS/Fuchsia]This will return TRUE or FALSE, depending if you are running on that specific platform.

