Skip to content

Commit 1d0d397

Browse files
committed
抽出舊有demo制,並添加一個新的制專for醫療紀錄
1 parent 1306566 commit 1d0d397

6 files changed

Lines changed: 27 additions & 2 deletions

File tree

lib/l10n/app_en.arb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,5 +1621,7 @@
16211621
"guidecalendarBody3": "User can input event select date and time",
16221622
"@guideWelcomeDescription": {
16231623
"description": "User can input event select date and time"
1624-
}
1624+
},
1625+
"photoDemoActive": "Photo Demo Active",
1626+
"@photoDemoActive": {}
16251627
}

lib/l10n/app_localizations.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,12 @@ abstract class AppLocalizations {
21162116
/// In en, this message translates to:
21172117
/// **'User can input event select date and time'**
21182118
String get guidecalendarBody3;
2119+
2120+
/// No description provided for @photoDemoActive.
2121+
///
2122+
/// In en, this message translates to:
2123+
/// **'Photo Demo Active'**
2124+
String get photoDemoActive;
21192125
}
21202126

21212127
class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {

lib/l10n/app_localizations_en.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,4 +1067,7 @@ class AppLocalizationsEn extends AppLocalizations {
10671067

10681068
@override
10691069
String get guidecalendarBody3 => 'User can input event select date and time';
1070+
1071+
@override
1072+
String get photoDemoActive => 'Photo Demo Active';
10701073
}

lib/l10n/app_localizations_zh.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,4 +1066,7 @@ class AppLocalizationsZh extends AppLocalizations {
10661066

10671067
@override
10681068
String get guidecalendarBody3 => '記錄備忘並標住時間和提醒時間';
1069+
1070+
@override
1071+
String get photoDemoActive => '啟用照片演示模式';
10691072
}

lib/l10n/app_zh.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@
385385
"description": "描述 Dr.AI 作為醫療助手可以做什麼"
386386
},
387387
"viewIntroduction": "查看介紹",
388+
"photoDemoActive": "啟用照片演示模式",
388389
"guideVaccineRecordBenefits": "疫苗記錄功能的好處包括:\n• 系統化管理疫苗接種記錄\n• 提供接種日期、地點及劑次的詳細資訊\n• 支援上傳及查看疫苗接種照片\n• 可新增、編輯及刪除疫苗記錄\n• 幫助追蹤接種歷史,方便醫療諮詢",
389390
"bmiFunctionDescription": "BMI 計算功能的好處包括:\n• 提供準確的 BMI 指數計算\n• 根據年齡和性別提供個性化的 BMI 分類標準\n• 支援亞洲標準和 WHO 標準的 BMI 分類\n• 提供健康建議以改善體重狀況\n• 幫助用戶追蹤健康狀況,促進健康生活方式\n\n請注意:BMI 僅供參考,具體健康建議請諮詢專業醫師。"
390391
}

lib/widgets/widgets_screens/widgets_settings/widget_interface.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,17 @@ class _WidgetInterfaceState extends State<WidgetInterface> {
175175
widget.prefs.getBool("demoModeEnabled") ?? false,
176176
(value) {
177177
widget.prefs.setBool("demoModeEnabled", value);
178-
OcrService.toggleDemoMode(enable: value);
178+
// OcrService.toggleDemoMode(enable: value);
179+
},
180+
),
181+
182+
_buildToggle(
183+
context,
184+
AppLocalizations.of(context)!.photoDemoActive,
185+
widget.prefs.getBool("photoDemoActive") ?? false,
186+
(value) {
187+
widget.prefs.setBool("photoDemoActive", value);
188+
OcrService.toggleDemoMode(enable: value);
179189
},
180190
),
181191

0 commit comments

Comments
 (0)