设备 预约接口
This commit is contained in:
@@ -69,7 +69,7 @@ class WeatherModelController extends GetControllerEx<WeatherModel> {
|
||||
// 获取当前位置并存储到 model
|
||||
Future<void> _getCurrentLocation() async {
|
||||
try {
|
||||
Position position = await _determinePosition();
|
||||
Position position = await determinePosition();
|
||||
if (position == null) {
|
||||
throw Exception("获取位置失败");
|
||||
}
|
||||
@@ -97,7 +97,7 @@ class WeatherModelController extends GetControllerEx<WeatherModel> {
|
||||
}
|
||||
|
||||
// 获取当前位置
|
||||
Future<Position> _determinePosition() async {
|
||||
Future<Position> determinePosition() async {
|
||||
bool serviceEnabled;
|
||||
LocationPermission permission;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user