Skip to content

根据平台获取对应数据, 来源于 ReactNative 的 Platform module

License

Notifications You must be signed in to change notification settings

flutter-fast-kit/flutter_platform_selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_platform_selector

Pub Publish to Pub.dev Awesome Flutter Awesome Flutter License

根据平台获取对应数据, 来源于 ReactNativePlatform module

使用

🔩 安装

pubspec.yaml 添加依赖

dependencies:
  flutter_platform_selector: <last_version>

🔨 使用

Text(PlatformSelector.select(
      ios: 'iOS',
      android: 'Android',
      fuchsia: 'Fuchsia',
      desktop: 'Desktop',
      web: 'Web'));

Changelog

Refer to the Changelog to get all release notes.

About

根据平台获取对应数据, 来源于 ReactNative 的 Platform module

Resources

License

Stars

Watchers

Forks

Languages