We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e04fc1 commit 1a0b8f1Copy full SHA for 1a0b8f1
example/lib/main.dart
@@ -2,6 +2,7 @@ import 'dart:async';
2
import 'dart:convert';
3
4
import 'package:env_flutter/env_flutter.dart';
5
+import 'package:flutter/foundation.dart';
6
import 'package:flutter/material.dart';
7
import 'package:fpjs_pro_plugin/error.dart';
8
import 'package:fpjs_pro_plugin/fpjs_pro_plugin.dart';
@@ -82,6 +83,9 @@ class _MyAppState extends State<MyApp> {
82
83
}
84
85
Future<void> requestLocationPermission() async {
86
+ if (kIsWeb) {
87
+ return;
88
+ }
89
LocationPermission permission = await Geolocator.checkPermission();
90
if (permission == LocationPermission.denied) {
91
permission = await Geolocator.requestPermission();
0 commit comments