flutter_hms_gms_checker

Last updated:

0 purchases

flutter_hms_gms_checker Image
flutter_hms_gms_checker Images
Add to Cart

Description:

flutter hms gms checker

flutter_hms_gms_checker #
A null safe porting of https://pub.dev/packages/flutter_hms_gms_availability
Example #
import 'package:flutter/material.dart';
import 'package:flutter_hms_gms_checker/flutter_hms_gms_checker.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
late bool gms, hms;

@override
void initState() {
super.initState();
FlutterHmsGmsChecker.isGmsAvailable.then((t) {
setState(() {
gms = t;
});
});
FlutterHmsGmsChecker.isHmsAvailable.then((t) {
setState(() {
hms = t;
});
});
}

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('HMS/GMS Availability'),
),
body: Center(
child: Text('GMS Available: $gms\nHMS Available: $hms'),
),
),
);
}
}

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.