Compare commits

..
4 Commits
Author SHA1 Message Date
mlch911 f96dee06f9 Increase Build Number 2025-06-04 09:53:07 +08:00
mlch911 7b1da5568b fix: 默认导航 2025-06-04 09:51:35 +08:00
mlch911 25b8692504 Increase Build Number 2025-06-03 18:34:30 +08:00
mlch911 28e3cfc77a Increase Build Number 2025-06-03 18:33:35 +08:00
2 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -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>
+24
View File
@@ -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) {