Compare commits
4
Commits
cb7c1c9dd4
..
iOS
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f96dee06f9 | ||
|
|
7b1da5568b | ||
|
|
25b8692504 | ||
|
|
28e3cfc77a |
@@ -5,7 +5,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>zh-Hans</string>
|
<string>zh-Hans</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>黑烟车抓拍系统</string>
|
<string>$(INFOPLIST_KEY_CFBundleDisplayName)</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.6.5</string>
|
<string>1.6.5</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>19</string>
|
<string>22</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSApplicationQueriesSchemes</key>
|
<key>LSApplicationQueriesSchemes</key>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class dwInfoDialog extends Dialog {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
getDefaultMap();
|
||||||
Size mediaSize = MediaQuery.of(context).size;
|
Size mediaSize = MediaQuery.of(context).size;
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
child: Material(
|
child: Material(
|
||||||
@@ -154,6 +155,29 @@ class dwInfoDialog extends Dialog {
|
|||||||
String defaultMapName = g_defaultMapName;
|
String defaultMapName = g_defaultMapName;
|
||||||
AvailableMap defalutMap;
|
AvailableMap defalutMap;
|
||||||
|
|
||||||
|
void getDefaultMap() async {
|
||||||
|
print('getCurrentPosition begin');
|
||||||
|
|
||||||
|
// 是否保存默认地图
|
||||||
|
g_bSaveDefaultMap = await Storage.getBool('bSaveDefaultMap');
|
||||||
|
g_bSaveDefaultMap = (null == g_bSaveDefaultMap) ? false : g_bSaveDefaultMap; // 默认不保存
|
||||||
|
// 用户选择的默认地图名称
|
||||||
|
g_defaultMapName = await Storage.getString('defaultMapName');
|
||||||
|
g_defaultMapName = (null == g_defaultMapName) ? '' : g_defaultMapName; // 默认为空字符串
|
||||||
|
defaultMapName = g_defaultMapName;
|
||||||
|
|
||||||
|
// 获取用户选择的默认地图
|
||||||
|
// availableMaps = await MapLauncher.installedMaps; // 为避免延迟错乱,该变量由父组件传入
|
||||||
|
if (defaultMapName != null && defaultMapName.length > 0) {
|
||||||
|
for (var map in availableMaps) {
|
||||||
|
if (defaultMapName.toLowerCase() == map.mapName.toLowerCase()) {
|
||||||
|
defalutMap = map;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
navigationMap(BuildContext context) {
|
navigationMap(BuildContext context) {
|
||||||
print('this.defalutMap = ${defalutMap}');
|
print('this.defalutMap = ${defalutMap}');
|
||||||
if (defalutMap != null) {
|
if (defalutMap != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user