Commit 08d5fdff7c3c115ffba31990f0b475d77b8651b2

Authored by 权海
1 parent de22e9be

feat(ui):添加表盘/应用主题不再校验和watch app 的数据连接

@@ -151,9 +151,7 @@ class CustomWatchThemePreviewController extends GetxController { @@ -151,9 +151,7 @@ class CustomWatchThemePreviewController extends GetxController {
151 device = null; 151 device = null;
152 watchConnectErrorDesc.value = e.toString(); 152 watchConnectErrorDesc.value = e.toString();
153 } 153 }
154 - if (device?.isPaired != true ||  
155 - device?.isReachable != true ||  
156 - device?.isWatchAppInstalled != true) { 154 + if (device?.isPaired != true) {
157 await Get.dialog<void>( 155 await Get.dialog<void>(
158 const WatchThemeNoWatchDialog(), 156 const WatchThemeNoWatchDialog(),
159 barrierColor: const Color(0xB3000000), 157 barrierColor: const Color(0xB3000000),
@@ -177,9 +175,7 @@ class CustomWatchThemePreviewController extends GetxController { @@ -177,9 +175,7 @@ class CustomWatchThemePreviewController extends GetxController {
177 device = null; 175 device = null;
178 watchConnectErrorDesc.value = e.toString(); 176 watchConnectErrorDesc.value = e.toString();
179 } 177 }
180 - if (device?.isPaired != true ||  
181 - device?.isReachable != true ||  
182 - device?.isWatchAppInstalled != true) { 178 + if (device?.isPaired != true) {
183 await Get.dialog<void>( 179 await Get.dialog<void>(
184 const WatchThemeNoWatchDialog(), 180 const WatchThemeNoWatchDialog(),
185 barrierColor: const Color(0xB3000000), 181 barrierColor: const Color(0xB3000000),
@@ -122,9 +122,7 @@ class WatchThemePreviewController extends GetxController { @@ -122,9 +122,7 @@ class WatchThemePreviewController extends GetxController {
122 device = null; 122 device = null;
123 watchConnectErrorDesc.value = e.toString(); 123 watchConnectErrorDesc.value = e.toString();
124 } 124 }
125 - if (device?.isPaired != true ||  
126 - device?.isReachable != true ||  
127 - device?.isWatchAppInstalled != true) { 125 + if (device?.isPaired != true) {
128 await Get.dialog<void>( 126 await Get.dialog<void>(
129 const WatchThemeNoWatchDialog(), 127 const WatchThemeNoWatchDialog(),
130 barrierColor: const Color(0xB3000000), 128 barrierColor: const Color(0xB3000000),
@@ -149,9 +147,7 @@ class WatchThemePreviewController extends GetxController { @@ -149,9 +147,7 @@ class WatchThemePreviewController extends GetxController {
149 device = null; 147 device = null;
150 watchConnectErrorDesc.value = e.toString(); 148 watchConnectErrorDesc.value = e.toString();
151 } 149 }
152 - if (device?.isPaired != true ||  
153 - device?.isReachable != true ||  
154 - device?.isWatchAppInstalled != true) { 150 + if (device?.isPaired != true) {
155 await Get.dialog<void>( 151 await Get.dialog<void>(
156 const WatchThemeNoWatchDialog(), 152 const WatchThemeNoWatchDialog(),
157 barrierColor: const Color(0xB3000000), 153 barrierColor: const Color(0xB3000000),