设备 预约接口

This commit is contained in:
czz
2025-06-12 09:03:44 +08:00
parent 6ec1c79866
commit d5c3addd4a
23 changed files with 1488 additions and 1324 deletions

View File

@@ -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;