diff --git a/front/capstone_front/assets/images/facility_time_en.jpg b/front/capstone_front/assets/images/facility_time_en.jpg new file mode 100644 index 0000000000..fedc1028b5 Binary files /dev/null and b/front/capstone_front/assets/images/facility_time_en.jpg differ diff --git a/front/capstone_front/assets/images/facility_time.jpg b/front/capstone_front/assets/images/facility_time_ko.jpg similarity index 100% rename from front/capstone_front/assets/images/facility_time.jpg rename to front/capstone_front/assets/images/facility_time_ko.jpg diff --git a/front/capstone_front/assets/images/facility_time_zh.jpg b/front/capstone_front/assets/images/facility_time_zh.jpg new file mode 100644 index 0000000000..de08da1a8d Binary files /dev/null and b/front/capstone_front/assets/images/facility_time_zh.jpg differ diff --git a/front/capstone_front/lib/screens/home/home_screen.dart b/front/capstone_front/lib/screens/home/home_screen.dart index 0d3ea1fc98..7d7c2f3ff3 100644 --- a/front/capstone_front/lib/screens/home/home_screen.dart +++ b/front/capstone_front/lib/screens/home/home_screen.dart @@ -35,12 +35,8 @@ class _HomeScreenState extends State @override void initState() { super.initState(); - if (language! != 'KO') { - language = "EN-US"; - } else { - language = 'KO'; - } - noticesRes = NoticeService.getNotices(0, 'all', language!); + + noticesRes = NoticeService.getNotices(0, 'all', language); _controller = AnimationController( vsync: this, duration: const Duration(milliseconds: 500), @@ -322,13 +318,34 @@ class _HomeScreenState extends State title: tr('mainScreen.facility_info'), icon: Icons.business, routeCallbackFun: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (context) => const ImageScreen( - 'assets/images/facility_time.jpg'), - ), - ); + if (language == 'EN-US') { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => + const ImageScreen( + 'assets/images/facility_time_en.jpg'), + ), + ); + } else if (language == 'ZH') { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => + const ImageScreen( + 'assets/images/facility_time_zh.jpg'), + ), + ); + } else { + Navigator.push( + context, + MaterialPageRoute( + builder: (context) => + const ImageScreen( + 'assets/images/facility_time_ko.jpg'), + ), + ); + } }), const SizedBox( width: 15, diff --git a/front/capstone_front/pubspec.yaml b/front/capstone_front/pubspec.yaml index e04ffb1a1a..ab5131fbda 100644 --- a/front/capstone_front/pubspec.yaml +++ b/front/capstone_front/pubspec.yaml @@ -86,7 +86,9 @@ flutter: - assets/images/koomin.png - assets/images/kookmin_map.jpg - assets/images/kookmin_map_row.jpg - - assets/images/facility_time.jpg + - assets/images/facility_time_ko.jpg + - assets/images/facility_time_en.jpg + - assets/images/facility_time_zh.jpg - assets/audio/sample.wav - .env