advanced_platform_detection 1.0.0 copy "advanced_platform_detection: ^1.0.0" to clipboard
advanced_platform_detection: ^1.0.0 copied to clipboard

outdated

A plugin that enables you to retrive the current platform (iOS, Android, Windows, ...)+ brower & more

date_field #

pub package

A fully cross-platform plugin to retrieve the os, the browser? ;) and more !

Usage #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  advanced_platform_detection: ^1.0.0

In your library add the following import:

import 'package:advanced_platform_detection/advanced_platform_detection.dart';



@override
Widget build(BuildContext context) {
  if (AdvancedPlatform.isIOS) {
    
  } else (AdvancedPlatform.isWeb) {
    
  } else (AdvancedPlatform.isSafari) { /// returns false if isWeb is false...
    
  }
  
  ...
}

4
likes
0
pub points
37%
popularity

Publisher

verified publishergaspardmerten.dev

A plugin that enables you to retrive the current platform (iOS, Android, Windows, ...)+ brower & more

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on advanced_platform_detection