Skip to content

Commit c3ed029

Browse files
authored
feat: 통증 부위 선택 화면 구현 완료 (#65)
1 parent ae74d7b commit c3ed029

File tree

4 files changed

+40
-12
lines changed

4 files changed

+40
-12
lines changed
-1 KB
Loading

frontend/ongi/lib/screens/health/exercise_record_detail_screen.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ class ExerciseRecordDetailScreen extends StatelessWidget {
8383
left: 0,
8484
right: 0,
8585
child: Center(
86-
child: Text(
87-
'${date.year}-${date.month}-${date.day} : $hours시간 $minutes분',
88-
style: const TextStyle(fontSize: 24),
89-
),
9086
),
9187
),
9288
// Back button

frontend/ongi/lib/screens/health/health_status_input_screen.dart

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class HealthStatusInputScreen extends StatefulWidget {
1212

1313
class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
1414
Map<int, int> selectedDosages = {};
15+
bool isFront = true;
1516

1617
@override
1718
Widget build(BuildContext context) {
@@ -65,12 +66,12 @@ class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
6566
Container(
6667
margin: EdgeInsets.symmetric(
6768
horizontal: 0,
68-
vertical: 0,
69+
vertical: 6,
6970
),
7071
child: Image.asset(
71-
'assets/images/health_status_check_hands.png',
72-
width: 99,
73-
height: 99,
72+
'assets/images/sitting_mom_icon.png',
73+
width: 110,
74+
height: 110,
7475
),
7576
),
7677
],
@@ -94,14 +95,41 @@ class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
9495
Expanded(
9596
child: Container(
9697
width: double.infinity,
97-
margin: const EdgeInsets.only(left: 60, right: 60, bottom: 20),
98+
margin: const EdgeInsets.only(left: 80, right: 80, bottom: 20),
9899
decoration: BoxDecoration(
99100
color: Colors.white,
100101
borderRadius: BorderRadius.circular(20),
101102
),
102-
child: Padding(
103-
padding: const EdgeInsets.all(16),
104-
child: Text("여기부터 본문을 생성 ㅇ.ㅇ"),
103+
child: Stack(
104+
children: [
105+
Center(
106+
child: Image.asset(
107+
isFront
108+
? 'assets/images/body_front.png'
109+
: 'assets/images/body_back.png',
110+
height: 400, // 필요시 반응형으로 조정
111+
fit: BoxFit.contain,
112+
),
113+
),
114+
Positioned(
115+
right: 16,
116+
bottom: 16,
117+
child: GestureDetector(
118+
onTap: () {
119+
setState(() {
120+
isFront = !isFront;
121+
});
122+
},
123+
child: Image.asset(
124+
isFront
125+
? 'assets/images/body_front_btn.png'
126+
: 'assets/images/body_back_btn.png',
127+
width: 60,
128+
height: 60,
129+
),
130+
),
131+
),
132+
],
105133
),
106134
),
107135
),

frontend/ongi/pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ flutter:
6262
- assets/images/step_tracker_light_background.svg
6363
- assets/images/step_tracker_rectangle.svg
6464
- assets/images/sample_family_photo.png
65+
- assets/images/body_front.png
66+
- assets/images/body_front_btn.png
67+
- assets/images/body_back.png
68+
- assets/images/body_back_btn.png
6569

6670
fonts:
6771
- family: Pretendard

0 commit comments

Comments
 (0)