Commit 34d92c229ec8324febf3ae036fd4019f6a146559

Authored by 常守达
1 parent fe5ada11

fix(today):帮助页

@@ -76,11 +76,11 @@ class HelpView extends GetView<HelpController> { @@ -76,11 +76,11 @@ class HelpView extends GetView<HelpController> {
76 return [ 76 return [
77 ( 77 (
78 title: l10n.todayFaqLinkNoData, 78 title: l10n.todayFaqLinkNoData,
79 - body: const [  
80 - '1、 确定苹果手表系统在10.0以上,手机系统在14以上,系统版本可在【关于本机】内查看。',  
81 - '2、确认是否开启所有权限:手机【健康】-【共享】-【app】-【DoubleFeel】-【打开所有权限】',  
82 - '3、确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。',  
83 - '如以上均检查无问题,可以在【意见反馈】-【联系我们】中提交相关问题,我们看到后会第一时间回复。', 79 + body: [
  80 + l10n.helpNoDataReason1,
  81 + l10n.helpNoDataReason2,
  82 + l10n.helpNoDataReason3,
  83 + l10n.helpNoDataReasonFooter,
84 ], 84 ],
85 ), 85 ),
86 ( 86 (
@@ -319,6 +319,9 @@ class TodayController extends GetMaterialController { @@ -319,6 +319,9 @@ class TodayController extends GetMaterialController {
319 } else { 319 } else {
320 Get.to(NoHealthDataPage( 320 Get.to(NoHealthDataPage(
321 onRefresh: requestHealthAuthorization, 321 onRefresh: requestHealthAuthorization,
  322 + onHelp: () {
  323 + Get.toNamed(Routes.HELP);
  324 + },
322 )); 325 ));
323 } 326 }
324 } 327 }
@@ -2,6 +2,7 @@ import 'package:doublefeel_flutter/app/modules/user_onboarding/views/user_onboar @@ -2,6 +2,7 @@ import 'package:doublefeel_flutter/app/modules/user_onboarding/views/user_onboar
2 import 'package:doublefeel_flutter/app/modules/user_onboarding/widget/guide_common_scaffold.dart'; 2 import 'package:doublefeel_flutter/app/modules/user_onboarding/widget/guide_common_scaffold.dart';
3 import 'package:doublefeel_flutter/app/modules/user_onboarding/widget/onboarding_common_widgets.dart'; 3 import 'package:doublefeel_flutter/app/modules/user_onboarding/widget/onboarding_common_widgets.dart';
4 import 'package:doublefeel_flutter/core/theme/app_theme.dart'; 4 import 'package:doublefeel_flutter/core/theme/app_theme.dart';
  5 +import 'package:doublefeel_flutter/l10n/l10n_extensions.dart';
5 import 'package:flutter/material.dart'; 6 import 'package:flutter/material.dart';
6 import 'package:flutter/services.dart'; 7 import 'package:flutter/services.dart';
7 import 'package:get/get.dart'; 8 import 'package:get/get.dart';
@@ -13,8 +14,6 @@ class NoHealthDataPage extends StatelessWidget { @@ -13,8 +14,6 @@ class NoHealthDataPage extends StatelessWidget {
13 this.onHelp, 14 this.onHelp,
14 }); 15 });
15 16
16 - static const _placeholderColor = Color(0xFFD9D9D9);  
17 -  
18 final VoidCallback? onRefresh; 17 final VoidCallback? onRefresh;
19 final VoidCallback? onHelp; 18 final VoidCallback? onHelp;
20 19
@@ -44,11 +43,10 @@ class NoHealthDataPage extends StatelessWidget { @@ -44,11 +43,10 @@ class NoHealthDataPage extends StatelessWidget {
44 children: [ 43 children: [
45 const _PageHeading(), 44 const _PageHeading(),
46 const SizedBox(height: 24), 45 const SizedBox(height: 24),
47 - const _InfoCard( 46 + _InfoCard(
48 path: 'assets/images/common/ic_apple_watch.png', 47 path: 'assets/images/common/ic_apple_watch.png',
49 - title: '错误1:Apple Watch 数据不可用',  
50 - body:  
51 - '看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。', 48 + title: context.l10n.noHealthDataError1Title,
  49 + body: context.l10n.noHealthDataError1Body,
52 ), 50 ),
53 const SizedBox(height: 12), 51 const SizedBox(height: 12),
54 const _AuthorizationCard(), 52 const _AuthorizationCard(),
@@ -65,7 +63,7 @@ class NoHealthDataPage extends StatelessWidget { @@ -65,7 +63,7 @@ class NoHealthDataPage extends StatelessWidget {
65 vertical: 4, 63 vertical: 4,
66 ), 64 ),
67 child: Text( 65 child: Text(
68 - '需要帮助?', 66 + context.l10n.noHealthDataNeedHelp,
69 style: TextStyle( 67 style: TextStyle(
70 color: context.colors.primary, 68 color: context.colors.primary,
71 fontSize: 12, 69 fontSize: 12,
@@ -126,7 +124,7 @@ class _TopBar extends StatelessWidget { @@ -126,7 +124,7 @@ class _TopBar extends StatelessWidget {
126 onTap: onRefresh, 124 onTap: onRefresh,
127 child: Center( 125 child: Center(
128 child: Text( 126 child: Text(
129 - '刷新', 127 + context.l10n.noHealthDataRefresh,
130 style: TextStyle( 128 style: TextStyle(
131 color: context.colors.primary, 129 color: context.colors.primary,
132 fontSize: 14, 130 fontSize: 14,
@@ -153,7 +151,7 @@ class _PageHeading extends StatelessWidget { @@ -153,7 +151,7 @@ class _PageHeading extends StatelessWidget {
153 Padding( 151 Padding(
154 padding: EdgeInsets.symmetric(horizontal: 21), 152 padding: EdgeInsets.symmetric(horizontal: 21),
155 child: Text( 153 child: Text(
156 - '无心率数据可用', 154 + context.l10n.noHealthDataHeadingTitle,
157 textAlign: TextAlign.center, 155 textAlign: TextAlign.center,
158 style: TextStyle( 156 style: TextStyle(
159 color: Color(0xFF14121E), 157 color: Color(0xFF14121E),
@@ -167,7 +165,7 @@ class _PageHeading extends StatelessWidget { @@ -167,7 +165,7 @@ class _PageHeading extends StatelessWidget {
167 Padding( 165 Padding(
168 padding: EdgeInsets.symmetric(horizontal: 8), 166 padding: EdgeInsets.symmetric(horizontal: 8),
169 child: Text( 167 child: Text(
170 - 'DoubleFeel无法从 Apple Health 获取你的 HRV 数据。请按照提示授予权限,然后点击右上角“刷新”继续。', 168 + context.l10n.noHealthDataHeadingBody,
171 textAlign: TextAlign.center, 169 textAlign: TextAlign.center,
172 style: TextStyle( 170 style: TextStyle(
173 color: context.colors.textPrimary, 171 color: context.colors.textPrimary,
@@ -253,7 +251,7 @@ class _AuthorizationCard extends StatelessWidget { @@ -253,7 +251,7 @@ class _AuthorizationCard extends StatelessWidget {
253 ), 251 ),
254 SizedBox(height: 10), 252 SizedBox(height: 10),
255 Text( 253 Text(
256 - '错误 2:健康数据访问未授权', 254 + context.l10n.noHealthDataError2Title,
257 style: TextStyle( 255 style: TextStyle(
258 color: Colors.black, 256 color: Colors.black,
259 fontSize: 16, 257 fontSize: 16,
@@ -263,7 +261,7 @@ class _AuthorizationCard extends StatelessWidget { @@ -263,7 +261,7 @@ class _AuthorizationCard extends StatelessWidget {
263 ), 261 ),
264 SizedBox(height: 6), 262 SizedBox(height: 6),
265 Text( 263 Text(
266 - 'DoubleFeel 需要访问 Apple Health 数据的权限,以提供压力统计、提醒和建议。如果未授权,部分功能可能无法正常使用。\n\n请放心,所有健康数据仅存储在本地,不会上传。\n\n要启用权限,请按提示操作,并在 iOS 设置中选择 允许所有 → 健康 → DoubleFeel。', 264 + context.l10n.noHealthDataError2Body,
267 style: TextStyle( 265 style: TextStyle(
268 color: context.colors.textSecondary, 266 color: context.colors.textSecondary,
269 fontSize: 12, 267 fontSize: 12,
@@ -323,7 +321,7 @@ class _SystemIssueCard extends StatelessWidget { @@ -323,7 +321,7 @@ class _SystemIssueCard extends StatelessWidget {
323 ), 321 ),
324 SizedBox(height: 10), 322 SizedBox(height: 10),
325 Text( 323 Text(
326 - '错误 3:系统问题', 324 + context.l10n.noHealthDataError3Title,
327 style: TextStyle( 325 style: TextStyle(
328 color: Colors.black, 326 color: Colors.black,
329 fontSize: 16, 327 fontSize: 16,
@@ -333,14 +331,7 @@ class _SystemIssueCard extends StatelessWidget { @@ -333,14 +331,7 @@ class _SystemIssueCard extends StatelessWidget {
333 ), 331 ),
334 SizedBox(height: 6), 332 SizedBox(height: 6),
335 Text( 333 Text(
336 - '根据用户反馈,我们发现 HRV 或心率数据可能缺失的两个原因:\n\n'  
337 - '1. Apple Watch 未连接\n'  
338 - ' · 如果你的 Apple Watch 长时间未佩戴,心率数据可能无法采集。\n'  
339 - ' · 请检查 iOS 健康 App → “我的手表”,确认最近的心率数据是否在佩戴 Apple Watch 时记录。\n'  
340 - ' · 如果没有,请尝试佩戴 Apple Watch 进行数据采集,并打开 Apple 支持的心率功能。\n\n'  
341 - '2. 过去 30 天的心率或 HRV 数据缺失\n'  
342 - ' · 打开 iOS 健康 App → 浏览 → “心率” 或 “HRV” → “未找到数据”,确认是否缺失。\n'  
343 - ' · 如果数据缺失,请重新佩戴手表,并重启 iPhone 和 Apple Watch 后,再次打开 DoubleFeel。', 334 + context.l10n.noHealthDataError3Body,
344 style: TextStyle( 335 style: TextStyle(
345 color: context.colors.textSecondary, 336 color: context.colors.textSecondary,
346 fontSize: 12, 337 fontSize: 12,
@@ -373,19 +364,6 @@ class _CardShell extends StatelessWidget { @@ -373,19 +364,6 @@ class _CardShell extends StatelessWidget {
373 } 364 }
374 } 365 }
375 366
376 -class _IconPlaceholder extends StatelessWidget {  
377 - const _IconPlaceholder();  
378 -  
379 - @override  
380 - Widget build(BuildContext context) {  
381 - return Container(  
382 - width: 56,  
383 - height: 56,  
384 - color: NoHealthDataPage._placeholderColor,  
385 - );  
386 - }  
387 -}  
388 -  
389 class NoHealthDataNoPermissionPage extends StatelessWidget { 367 class NoHealthDataNoPermissionPage extends StatelessWidget {
390 const NoHealthDataNoPermissionPage({ 368 const NoHealthDataNoPermissionPage({
391 super.key, 369 super.key,
@@ -403,7 +381,7 @@ class NoHealthDataNoPermissionPage extends StatelessWidget { @@ -403,7 +381,7 @@ class NoHealthDataNoPermissionPage extends StatelessWidget {
403 child: GuideCommonScaffold( 381 child: GuideCommonScaffold(
404 onBackPressed: Get.back, 382 onBackPressed: Get.back,
405 bottom: OnboardingBottomButton( 383 bottom: OnboardingBottomButton(
406 - label: '前往开启', 384 + label: context.l10n.noHealthDataGoToSettings,
407 enabled: true, 385 enabled: true,
408 onPressed: () { 386 onPressed: () {
409 onRequest?.call(); 387 onRequest?.call();
@@ -563,5 +563,20 @@ @@ -563,5 +563,20 @@
563 "cellPhoneNumber": "Cell phone number", 563 "cellPhoneNumber": "Cell phone number",
564 "todayOnWeeklyCalendar": "today", 564 "todayOnWeeklyCalendar": "today",
565 "hrvTrendForThatDay": "HRV Trend for That Day", 565 "hrvTrendForThatDay": "HRV Trend for That Day",
566 - "todaySAverageHrv": "Today's Average HRV" 566 + "todaySAverageHrv": "Today's Average HRV",
  567 + "helpNoDataReason1": "1. Ensure your Apple Watch is on watchOS 10.0+ and iPhone is on iOS 14+. The system version can be checked in [Settings] -> [General] -> [About].",
  568 + "helpNoDataReason2": "2. Confirm if all permissions are enabled: iPhone [Health] -> [Sharing] -> [Apps] -> [DoubleFeel] -> [Turn On All].",
  569 + "helpNoDataReason3": "3. Confirm if devices are in power-saving mode, low battery status, or if the watch is not worn snugly, as these conditions affect watch data collection.",
  570 + "helpNoDataReasonFooter": "If all checks are correct and the issue persists, you can submit the problem in [Feedback] -> [Contact Us]. We will reply as soon as possible.",
  571 + "noHealthDataNeedHelp": "Need help?",
  572 + "noHealthDataRefresh": "Refresh",
  573 + "noHealthDataHeadingTitle": "No Heart Rate Data Available",
  574 + "noHealthDataHeadingBody": "DoubleFeel is unable to retrieve your HRV data from Apple Health. Please follow the instructions to grant permissions, then tap 'Refresh' in the top right to continue.",
  575 + "noHealthDataError1Title": "Error 1: Apple Watch Data Unavailable",
  576 + "noHealthDataError1Body": "It looks like you haven't used your Apple Watch in the past 12 months. If you just started using it and have enabled all data permissions, this message might still appear. Please continue to wear your Apple Watch to allow data collection, or add HRV data manually on the homepage.",
  577 + "noHealthDataError2Title": "Error 2: Health Data Access Unauthorized",
  578 + "noHealthDataError2Body": "DoubleFeel requires access to Apple Health data to provide stress stats, alerts, and recommendations. If not authorized, some features may not work properly.\n\nRest assured, all health data is only stored locally and will not be uploaded.\n\nTo enable permissions, follow the prompt and select Allow All -> Health -> DoubleFeel in iOS Settings.",
  579 + "noHealthDataError3Title": "Error 3: System Issue",
  580 + "noHealthDataError3Body": "Based on user feedback, we found two reasons why HRV or heart rate data might be missing:\n\n1. Apple Watch not connected\n · If your Apple Watch has not been worn for a long time, heart rate data may not be collected.\n · Please check iOS Health App -> 'My Watch' to confirm if recent heart rate data was recorded while wearing the Apple Watch.\n · If not, please try wearing your Apple Watch for data collection and turn on the heart rate feature supported by Apple.\n\n2. Heart rate or HRV data missing in the past 30 days\n · Open iOS Health App -> Browse -> 'Heart Rate' or 'HRV' -> 'No Data Found' to confirm if it's missing.\n · If data is missing, please wear the watch again, restart your iPhone and Apple Watch, then open DoubleFeel again.",
  581 + "noHealthDataGoToSettings": "Go to Settings"
567 } 582 }
@@ -851,5 +851,20 @@ @@ -851,5 +851,20 @@
851 "cellPhoneNumber": "手机号", 851 "cellPhoneNumber": "手机号",
852 "todayOnWeeklyCalendar": "今", 852 "todayOnWeeklyCalendar": "今",
853 "hrvTrendForThatDay": "该日HRV趋势", 853 "hrvTrendForThatDay": "该日HRV趋势",
854 - "todaySAverageHrv": "今日平均HRV" 854 + "todaySAverageHrv": "今日平均HRV",
  855 + "helpNoDataReason1": "1、 确定苹果手表系统在10.0以上,手机系统在14以上,系统版本可在【关于本机】内查看。",
  856 + "helpNoDataReason2": "2、确认是否开启所有权限:手机【健康】-【共享】-【app】-【DoubleFeel】-【打开所有权限】",
  857 + "helpNoDataReason3": "3、确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。",
  858 + "helpNoDataReasonFooter": "如以上均检查无问题,可以在【意见反馈】-【联系我们】中提交相关问题,我们看到后会第一时间回复。",
  859 + "noHealthDataNeedHelp": "需要帮助?",
  860 + "noHealthDataRefresh": "刷新",
  861 + "noHealthDataHeadingTitle": "无心率数据可用",
  862 + "noHealthDataHeadingBody": "DoubleFeel无法从 Apple Health 获取你的 HRV 数据。请按照提示授予权限,然后点击右上角“刷新”继续。",
  863 + "noHealthDataError1Title": "错误1:Apple Watch 数据不可用",
  864 + "noHealthDataError1Body": "看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。",
  865 + "noHealthDataError2Title": "错误 2:健康数据访问未授权",
  866 + "noHealthDataError2Body": "DoubleFeel 需要访问 Apple Health 数据的权限,以提供压力统计、提醒和建议。如果未授权,部分功能可能无法正常使用。\n\n请放心,所有健康数据仅存储在本地,不会上传。\n\n要启用权限,请按提示操作,并在 iOS 设置中选择 允许所有 → 健康 → DoubleFeel。",
  867 + "noHealthDataError3Title": "错误 3:系统问题",
  868 + "noHealthDataError3Body": "根据用户反馈,我们发现 HRV 或心率数据可能缺失的两个原因:\n\n1. Apple Watch 未连接\n · 如果你的 Apple Watch 长时间未佩戴,心率数据可能无法采集。\n · 请检查 iOS 健康 App → “我的手表”,确认最近的心率数据是否在佩戴 Apple Watch 时记录。\n · 如果没有,请尝试佩戴 Apple Watch 进行数据采集,并打开 Apple 支持的心率功能。\n\n2. 过去 30 天的心率或 HRV 数据缺失\n · 打开 iOS 健康 App → 浏览 → “心率” 或 “HRV” → “未找到数据”,确认是否缺失。\n · 如果数据缺失,请重新佩戴手表,并重启 iPhone 和 Apple Watch 后,再次打开 DoubleFeel。",
  869 + "noHealthDataGoToSettings": "前往开启"
855 } 870 }
@@ -3338,6 +3338,96 @@ abstract class AppLocalizations { @@ -3338,6 +3338,96 @@ abstract class AppLocalizations {
3338 /// In zh, this message translates to: 3338 /// In zh, this message translates to:
3339 /// **'今日平均HRV'** 3339 /// **'今日平均HRV'**
3340 String get todaySAverageHrv; 3340 String get todaySAverageHrv;
  3341 +
  3342 + /// No description provided for @helpNoDataReason1.
  3343 + ///
  3344 + /// In zh, this message translates to:
  3345 + /// **'1、 确定苹果手表系统在10.0以上,手机系统在14以上,系统版本可在【关于本机】内查看。'**
  3346 + String get helpNoDataReason1;
  3347 +
  3348 + /// No description provided for @helpNoDataReason2.
  3349 + ///
  3350 + /// In zh, this message translates to:
  3351 + /// **'2、确认是否开启所有权限:手机【健康】-【共享】-【app】-【DoubleFeel】-【打开所有权限】'**
  3352 + String get helpNoDataReason2;
  3353 +
  3354 + /// No description provided for @helpNoDataReason3.
  3355 + ///
  3356 + /// In zh, this message translates to:
  3357 + /// **'3、确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。'**
  3358 + String get helpNoDataReason3;
  3359 +
  3360 + /// No description provided for @helpNoDataReasonFooter.
  3361 + ///
  3362 + /// In zh, this message translates to:
  3363 + /// **'如以上均检查无问题,可以在【意见反馈】-【联系我们】中提交相关问题,我们看到后会第一时间回复。'**
  3364 + String get helpNoDataReasonFooter;
  3365 +
  3366 + /// No description provided for @noHealthDataNeedHelp.
  3367 + ///
  3368 + /// In zh, this message translates to:
  3369 + /// **'需要帮助?'**
  3370 + String get noHealthDataNeedHelp;
  3371 +
  3372 + /// No description provided for @noHealthDataRefresh.
  3373 + ///
  3374 + /// In zh, this message translates to:
  3375 + /// **'刷新'**
  3376 + String get noHealthDataRefresh;
  3377 +
  3378 + /// No description provided for @noHealthDataHeadingTitle.
  3379 + ///
  3380 + /// In zh, this message translates to:
  3381 + /// **'无心率数据可用'**
  3382 + String get noHealthDataHeadingTitle;
  3383 +
  3384 + /// No description provided for @noHealthDataHeadingBody.
  3385 + ///
  3386 + /// In zh, this message translates to:
  3387 + /// **'DoubleFeel无法从 Apple Health 获取你的 HRV 数据。请按照提示授予权限,然后点击右上角“刷新”继续。'**
  3388 + String get noHealthDataHeadingBody;
  3389 +
  3390 + /// No description provided for @noHealthDataError1Title.
  3391 + ///
  3392 + /// In zh, this message translates to:
  3393 + /// **'错误1:Apple Watch 数据不可用'**
  3394 + String get noHealthDataError1Title;
  3395 +
  3396 + /// No description provided for @noHealthDataError1Body.
  3397 + ///
  3398 + /// In zh, this message translates to:
  3399 + /// **'看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。'**
  3400 + String get noHealthDataError1Body;
  3401 +
  3402 + /// No description provided for @noHealthDataError2Title.
  3403 + ///
  3404 + /// In zh, this message translates to:
  3405 + /// **'错误 2:健康数据访问未授权'**
  3406 + String get noHealthDataError2Title;
  3407 +
  3408 + /// No description provided for @noHealthDataError2Body.
  3409 + ///
  3410 + /// In zh, this message translates to:
  3411 + /// **'DoubleFeel 需要访问 Apple Health 数据的权限,以提供压力统计、提醒和建议。如果未授权,部分功能可能无法正常使用。\n\n请放心,所有健康数据仅存储在本地,不会上传。\n\n要启用权限,请按提示操作,并在 iOS 设置中选择 允许所有 → 健康 → DoubleFeel。'**
  3412 + String get noHealthDataError2Body;
  3413 +
  3414 + /// No description provided for @noHealthDataError3Title.
  3415 + ///
  3416 + /// In zh, this message translates to:
  3417 + /// **'错误 3:系统问题'**
  3418 + String get noHealthDataError3Title;
  3419 +
  3420 + /// No description provided for @noHealthDataError3Body.
  3421 + ///
  3422 + /// In zh, this message translates to:
  3423 + /// **'根据用户反馈,我们发现 HRV 或心率数据可能缺失的两个原因:\n\n1. Apple Watch 未连接\n · 如果你的 Apple Watch 长时间未佩戴,心率数据可能无法采集。\n · 请检查 iOS 健康 App → “我的手表”,确认最近的心率数据是否在佩戴 Apple Watch 时记录。\n · 如果没有,请尝试佩戴 Apple Watch 进行数据采集,并打开 Apple 支持的心率功能。\n\n2. 过去 30 天的心率或 HRV 数据缺失\n · 打开 iOS 健康 App → 浏览 → “心率” 或 “HRV” → “未找到数据”,确认是否缺失。\n · 如果数据缺失,请重新佩戴手表,并重启 iPhone 和 Apple Watch 后,再次打开 DoubleFeel。'**
  3424 + String get noHealthDataError3Body;
  3425 +
  3426 + /// No description provided for @noHealthDataGoToSettings.
  3427 + ///
  3428 + /// In zh, this message translates to:
  3429 + /// **'前往开启'**
  3430 + String get noHealthDataGoToSettings;
3341 } 3431 }
3342 3432
3343 class _AppLocalizationsDelegate 3433 class _AppLocalizationsDelegate
@@ -1859,4 +1859,58 @@ class AppLocalizationsEn extends AppLocalizations { @@ -1859,4 +1859,58 @@ class AppLocalizationsEn extends AppLocalizations {
1859 1859
1860 @override 1860 @override
1861 String get todaySAverageHrv => 'Today\'s Average HRV'; 1861 String get todaySAverageHrv => 'Today\'s Average HRV';
  1862 +
  1863 + @override
  1864 + String get helpNoDataReason1 =>
  1865 + '1. Ensure your Apple Watch is on watchOS 10.0+ and iPhone is on iOS 14+. The system version can be checked in [Settings] -> [General] -> [About].';
  1866 +
  1867 + @override
  1868 + String get helpNoDataReason2 =>
  1869 + '2. Confirm if all permissions are enabled: iPhone [Health] -> [Sharing] -> [Apps] -> [DoubleFeel] -> [Turn On All].';
  1870 +
  1871 + @override
  1872 + String get helpNoDataReason3 =>
  1873 + '3. Confirm if devices are in power-saving mode, low battery status, or if the watch is not worn snugly, as these conditions affect watch data collection.';
  1874 +
  1875 + @override
  1876 + String get helpNoDataReasonFooter =>
  1877 + 'If all checks are correct and the issue persists, you can submit the problem in [Feedback] -> [Contact Us]. We will reply as soon as possible.';
  1878 +
  1879 + @override
  1880 + String get noHealthDataNeedHelp => 'Need help?';
  1881 +
  1882 + @override
  1883 + String get noHealthDataRefresh => 'Refresh';
  1884 +
  1885 + @override
  1886 + String get noHealthDataHeadingTitle => 'No Heart Rate Data Available';
  1887 +
  1888 + @override
  1889 + String get noHealthDataHeadingBody =>
  1890 + 'DoubleFeel is unable to retrieve your HRV data from Apple Health. Please follow the instructions to grant permissions, then tap \'Refresh\' in the top right to continue.';
  1891 +
  1892 + @override
  1893 + String get noHealthDataError1Title => 'Error 1: Apple Watch Data Unavailable';
  1894 +
  1895 + @override
  1896 + String get noHealthDataError1Body =>
  1897 + 'It looks like you haven\'t used your Apple Watch in the past 12 months. If you just started using it and have enabled all data permissions, this message might still appear. Please continue to wear your Apple Watch to allow data collection, or add HRV data manually on the homepage.';
  1898 +
  1899 + @override
  1900 + String get noHealthDataError2Title =>
  1901 + 'Error 2: Health Data Access Unauthorized';
  1902 +
  1903 + @override
  1904 + String get noHealthDataError2Body =>
  1905 + 'DoubleFeel requires access to Apple Health data to provide stress stats, alerts, and recommendations. If not authorized, some features may not work properly.\n\nRest assured, all health data is only stored locally and will not be uploaded.\n\nTo enable permissions, follow the prompt and select Allow All -> Health -> DoubleFeel in iOS Settings.';
  1906 +
  1907 + @override
  1908 + String get noHealthDataError3Title => 'Error 3: System Issue';
  1909 +
  1910 + @override
  1911 + String get noHealthDataError3Body =>
  1912 + 'Based on user feedback, we found two reasons why HRV or heart rate data might be missing:\n\n1. Apple Watch not connected\n · If your Apple Watch has not been worn for a long time, heart rate data may not be collected.\n · Please check iOS Health App -> \'My Watch\' to confirm if recent heart rate data was recorded while wearing the Apple Watch.\n · If not, please try wearing your Apple Watch for data collection and turn on the heart rate feature supported by Apple.\n\n2. Heart rate or HRV data missing in the past 30 days\n · Open iOS Health App -> Browse -> \'Heart Rate\' or \'HRV\' -> \'No Data Found\' to confirm if it\'s missing.\n · If data is missing, please wear the watch again, restart your iPhone and Apple Watch, then open DoubleFeel again.';
  1913 +
  1914 + @override
  1915 + String get noHealthDataGoToSettings => 'Go to Settings';
1862 } 1916 }
@@ -1760,4 +1760,56 @@ class AppLocalizationsZh extends AppLocalizations { @@ -1760,4 +1760,56 @@ class AppLocalizationsZh extends AppLocalizations {
1760 1760
1761 @override 1761 @override
1762 String get todaySAverageHrv => '今日平均HRV'; 1762 String get todaySAverageHrv => '今日平均HRV';
  1763 +
  1764 + @override
  1765 + String get helpNoDataReason1 =>
  1766 + '1、 确定苹果手表系统在10.0以上,手机系统在14以上,系统版本可在【关于本机】内查看。';
  1767 +
  1768 + @override
  1769 + String get helpNoDataReason2 =>
  1770 + '2、确认是否开启所有权限:手机【健康】-【共享】-【app】-【DoubleFeel】-【打开所有权限】';
  1771 +
  1772 + @override
  1773 + String get helpNoDataReason3 => '3、确认设备是否处于省电模式、低电量状态或手表佩戴未贴紧,以上情况会影响手表数据采集。';
  1774 +
  1775 + @override
  1776 + String get helpNoDataReasonFooter =>
  1777 + '如以上均检查无问题,可以在【意见反馈】-【联系我们】中提交相关问题,我们看到后会第一时间回复。';
  1778 +
  1779 + @override
  1780 + String get noHealthDataNeedHelp => '需要帮助?';
  1781 +
  1782 + @override
  1783 + String get noHealthDataRefresh => '刷新';
  1784 +
  1785 + @override
  1786 + String get noHealthDataHeadingTitle => '无心率数据可用';
  1787 +
  1788 + @override
  1789 + String get noHealthDataHeadingBody =>
  1790 + 'DoubleFeel无法从 Apple Health 获取你的 HRV 数据。请按照提示授予权限,然后点击右上角“刷新”继续。';
  1791 +
  1792 + @override
  1793 + String get noHealthDataError1Title => '错误1:Apple Watch 数据不可用';
  1794 +
  1795 + @override
  1796 + String get noHealthDataError1Body =>
  1797 + '看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。';
  1798 +
  1799 + @override
  1800 + String get noHealthDataError2Title => '错误 2:健康数据访问未授权';
  1801 +
  1802 + @override
  1803 + String get noHealthDataError2Body =>
  1804 + 'DoubleFeel 需要访问 Apple Health 数据的权限,以提供压力统计、提醒和建议。如果未授权,部分功能可能无法正常使用。\n\n请放心,所有健康数据仅存储在本地,不会上传。\n\n要启用权限,请按提示操作,并在 iOS 设置中选择 允许所有 → 健康 → DoubleFeel。';
  1805 +
  1806 + @override
  1807 + String get noHealthDataError3Title => '错误 3:系统问题';
  1808 +
  1809 + @override
  1810 + String get noHealthDataError3Body =>
  1811 + '根据用户反馈,我们发现 HRV 或心率数据可能缺失的两个原因:\n\n1. Apple Watch 未连接\n · 如果你的 Apple Watch 长时间未佩戴,心率数据可能无法采集。\n · 请检查 iOS 健康 App → “我的手表”,确认最近的心率数据是否在佩戴 Apple Watch 时记录。\n · 如果没有,请尝试佩戴 Apple Watch 进行数据采集,并打开 Apple 支持的心率功能。\n\n2. 过去 30 天的心率或 HRV 数据缺失\n · 打开 iOS 健康 App → 浏览 → “心率” 或 “HRV” → “未找到数据”,确认是否缺失。\n · 如果数据缺失,请重新佩戴手表,并重启 iPhone 和 Apple Watch 后,再次打开 DoubleFeel。';
  1812 +
  1813 + @override
  1814 + String get noHealthDataGoToSettings => '前往开启';
1763 } 1815 }