advanced_platform_detection

Creator: coderz1093

Last updated:

0 purchases

advanced_platform_detection Image
advanced_platform_detection Images
Add to Cart

Description:

advanced platform detection

Advanced Platform Detection (os & browser) #

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.4
copied to clipboard
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...

}

...
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.