Skip to content

Commit

Permalink
Merge pull request #207 from kookmin-sw/feature/fe/#185-school-info
Browse files Browse the repository at this point in the history
Feature/fe/#185 school info
  • Loading branch information
ji-hunc authored May 15, 2024
2 parents 36e42ad + defa0b3 commit feb8cbc
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 30 additions & 13 deletions front/capstone_front/lib/screens/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@ class _HomeScreenState extends State<HomeScreen>
@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),
Expand Down Expand Up @@ -322,13 +318,34 @@ class _HomeScreenState extends State<HomeScreen>
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,
Expand Down
4 changes: 3 additions & 1 deletion front/capstone_front/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit feb8cbc

Please sign in to comment.