Skip to content

Commit

Permalink
fixed lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishak15 committed Sep 27, 2023
1 parent 1e7b045 commit 373fee5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/services/reverse_geocoding/geocodingapi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class ReverseGeoCodingProvider with ChangeNotifier {

String get savedTime => _savedTime;


//To save last Location fetch time
saveTime() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
Expand All @@ -29,8 +28,6 @@ class ReverseGeoCodingProvider with ChangeNotifier {
notifyListeners();
}



Future<void> fetchApiData(ctx) async {
if (kDebugMode) {
print("Location revgeo");
Expand All @@ -55,7 +52,7 @@ class ReverseGeoCodingProvider with ChangeNotifier {
final long = coordinates.longitude!.toStringAsFixed(6);

final url = Uri.parse(
"https://eu1.locationiq.com/v1/reverse?key=$API_TOKEN&$coordinatesval&format=json");
"https://eu1.locationiq.com/v1/reverse?key=$apiKey&$coordinatesval&format=json");

final response = await http.get(url);

Expand Down

0 comments on commit 373fee5

Please sign in to comment.