Commit f4a751587019831f3f1882644dc24a6baaaa3403

Authored by 权海
1 parent 0520b64f

feat(ui):同步表盘

... ... @@ -342,14 +342,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
... ... @@ -420,14 +416,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
... ...
... ... @@ -189,7 +189,20 @@ class CustomWatchThemePreviewController extends GetxController {
await Get.bottomSheet<void>(
WatchThemeSyncDialog(
themeImageUrl: themeItem.energeticImage,
onSync: applyAndSyncWatchFace,
onSync: () async {
if (device?.isPaired != true ||
device?.isWatchAppInstalled != true ||
device?.isReachable != true) {
Get.back();
await Get.dialog<void>(
const WatchThemeNoWatchDialog(),
barrierColor: const Color(0xB3000000),
);
return false;
}
return await applyAndSyncWatchFace();
},
),
backgroundColor: Colors.transparent,
barrierColor: const Color(0xB3000000),
... ...
... ... @@ -160,7 +160,20 @@ class WatchThemePreviewController extends GetxController {
await Get.bottomSheet<void>(
WatchThemeSyncDialog(
themeImageUrl: themeItem.energeticImage,
onSync: applyAndSyncWatchFace,
onSync: () async {
if (device?.isPaired != true ||
device?.isWatchAppInstalled != true ||
device?.isReachable != true) {
Get.back();
await Get.dialog<void>(
const WatchThemeNoWatchDialog(),
barrierColor: const Color(0xB3000000),
);
return false;
}
return await applyAndSyncWatchFace();
},
),
backgroundColor: Colors.transparent,
barrierColor: const Color(0xB3000000),
... ...