Browse Source

ios

百度地图路径的显示;
门店列表优化的;
dev
fmk 1 year ago
parent
commit
f8ebb86abd
  1. 2
      lib/union/location_map_page.dart
  2. 9
      lib/union/union_page.dart

2
lib/union/location_map_page.dart

@ -507,7 +507,7 @@ class _LocationMap extends State<LocationMap> with WidgetsBindingObserver {
northeast: startLocation, southwest: endLocation),
animated: true,
insets:
EdgeInsets.only(top: 500.h, bottom: 200.h, left: 200.w, right: 200.w));
EdgeInsets.only(top: Platform.isAndroid?500.h:150.h, bottom: Platform.isAndroid?200.h:50.h));
hours = needHours == 0 ? "" : "$needHours小时";
minutes = needMinutes == 0 ? "" : "$needMinutes分钟";

9
lib/union/union_page.dart

@ -72,7 +72,7 @@ class UnionPageState extends State<UnionPage>
}
void permissionSettings() async {
if (await Permission.location.isGranted){
if (_isShowLocalTips && await Permission.location.isGranted){
_isShowLocalTips = false;
startLocation();
}
@ -111,7 +111,10 @@ class UnionPageState extends State<UnionPage>
queryIpInfo();
}
startLocation() async {
startLocation({bool showLoading = true}) async {
if(showLoading)
EasyLoading.show(
status: S.current.zhengzaijiazai, maskType: EasyLoadingMaskType.black);
bool powerFlag = false;
// bool finallyFlag = false;
try {
@ -184,7 +187,7 @@ class UnionPageState extends State<UnionPage>
areaName = baseData.city.replaceAll("", "");
}
} finally {
startLocation();
startLocation(showLoading: false);
}
}

Loading…
Cancel
Save