diff --git a/lib/src/ui/pages/med_recognition/prescribed_med/prescribed_med_result_page/prescribed_med_result_page_widget.dart b/lib/src/ui/pages/med_recognition/prescribed_med/prescribed_med_result_page/prescribed_med_result_page_widget.dart index 0941f50..be9d325 100644 --- a/lib/src/ui/pages/med_recognition/prescribed_med/prescribed_med_result_page/prescribed_med_result_page_widget.dart +++ b/lib/src/ui/pages/med_recognition/prescribed_med/prescribed_med_result_page/prescribed_med_result_page_widget.dart @@ -1,3 +1,5 @@ +import 'package:pillkaboo/src/app/tts/tts_service.dart'; + import '../../../../styles/pillkaboo_theme.dart'; import '../../../../../core/pillkaboo_util.dart'; import '../../../../widgets/index.dart' as widgets; @@ -22,6 +24,7 @@ class PrescribedMedResultPageWidget extends StatefulWidget { class _CheckRestResultPageWidgetState extends State { late PrescribedMedResultPageModel _model; + late String imgPath; final scaffoldKey = GlobalKey(); @@ -30,6 +33,18 @@ class _CheckRestResultPageWidgetState extends State PrescribedMedResultPageModel()); + if (PKBAppState().slotOfDay == "아침") { + imgPath = 'assets/images/morning.png'; + } else if (PKBAppState().slotOfDay == "점심") { + imgPath = 'assets/images/lunch.png'; + } else if (PKBAppState().slotOfDay == "저녁") { + imgPath = 'assets/images/night.png'; + } else { + imgPath = 'assets/images/warning.svg'; + } + if (!PKBAppState().useScreenReader) { + TtsService().speak('이 약은 ${PKBAppState().slotOfDay} 약입니다. ${PKBAppState().infoPrescribedDate}에 처방받은 약입니다.'); + } } @override @@ -51,17 +66,6 @@ class _CheckRestResultPageWidgetState extends State