更新控制跳转
This commit is contained in:
@@ -81,6 +81,10 @@ class WeatherModelController extends GetControllerEx<WeatherModel> {
|
||||
List<Placemark> placemarks = [];
|
||||
// placemarks = await placemarkFromCoordinates(position.latitude, position.longitude,
|
||||
// localeIdentifier: language);
|
||||
placemarks = await placemarkFromCoordinates(
|
||||
position.latitude,
|
||||
position.longitude,
|
||||
);
|
||||
|
||||
if (placemarks.isNotEmpty) {
|
||||
model.cityName = placemarks[0].locality ?? "未知数据".tr;
|
||||
|
||||
Reference in New Issue
Block a user