📅  最后修改于: 2022-03-11 14:58:58.439000             🧑  作者: Mango
#Geolocator() is deprecated from the package geolocator ^6.1.14
#Flutter new version Flutter 1.22.5, you have to use the geocoding package
#1- Add package in pubspec.yaml file:
dependencies:
geocoding: ^1.0.5
#2 Install it
$ flutter pub get
#3 Import it in Dart code
import 'package:geocoding/geocoding.dart';