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