Skip to content

Lightweight Flutter package to check the platform your app is running on.

License

Notifications You must be signed in to change notification settings

adrianflutur/platformx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlatformX

pub package

A multi-platform lightweight tool which helps you check the platform your app is running on.

  • Gallery

Android Web

  • Usage

There are 2 ways to use it.

First way :

PlatformX.platform

This will return one of the values of the PlatformEnum enum.

enum PlatformEnum {
  Android,
  IOS,
  Web,
  Windows,
  Linux,
  MacOS,
  Fuchsia,
}

Second way :

PlatformX.is[Android/IOS/Web/Windows/Linux/MacOS/Fuchsia]

Example:

PlatformX.isLinux

This will return true if you are running on that specific platform, or false otherwise.

License

MIT

About

Lightweight Flutter package to check the platform your app is running on.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published