Skip to content

Commit 7afa8e2

Browse files
authored
fix: DateCarousel 상하 패딩 축소 (#67)
DateCarousel 상하 패딩을 축소하여 신체도 크기를 크게 조절하였습니다.
1 parent 8dce18d commit 7afa8e2

File tree

1 file changed

+43
-35
lines changed

1 file changed

+43
-35
lines changed

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

Lines changed: 43 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class HealthStatusInputScreen extends StatefulWidget {
77
const HealthStatusInputScreen({super.key});
88

99
@override
10-
State<HealthStatusInputScreen> createState() => _HealthStatusInputScreenState();
10+
State<HealthStatusInputScreen> createState() =>
11+
_HealthStatusInputScreenState();
1112
}
1213

1314
class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
@@ -84,7 +85,7 @@ class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
8485
),
8586
),
8687
Positioned(
87-
top: circleSize * 0.3 + 99,
88+
top: circleSize * 0.3 + 65,
8889
left: 0,
8990
right: 0,
9091
bottom: 0,
@@ -93,43 +94,50 @@ class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
9394
children: [
9495
Center(child: DateCarousel()),
9596
Expanded(
96-
child: Container(
97-
width: double.infinity,
98-
margin: const EdgeInsets.only(left: 80, right: 80, bottom: 20),
99-
decoration: BoxDecoration(
100-
color: Colors.white,
101-
borderRadius: BorderRadius.circular(20),
102-
),
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-
},
97+
child: Transform.translate(
98+
offset: const Offset(0, -10),
99+
child: Container(
100+
width: double.infinity,
101+
margin: const EdgeInsets.only(
102+
left: 80,
103+
right: 80,
104+
bottom: 10,
105+
),
106+
decoration: BoxDecoration(
107+
color: Colors.white,
108+
borderRadius: BorderRadius.circular(20),
109+
),
110+
child: Stack(
111+
children: [
112+
Center(
123113
child: Image.asset(
124114
isFront
125-
? 'assets/images/body_front_btn.png'
126-
: 'assets/images/body_back_btn.png',
127-
width: 60,
128-
height: 60,
115+
? 'assets/images/body_front.png'
116+
: 'assets/images/body_back.png',
117+
height: 400, // 필요시 반응형으로 조정
118+
fit: BoxFit.contain,
129119
),
130120
),
131-
),
132-
],
121+
Positioned(
122+
right: 16,
123+
bottom: 16,
124+
child: GestureDetector(
125+
onTap: () {
126+
setState(() {
127+
isFront = !isFront;
128+
});
129+
},
130+
child: Image.asset(
131+
isFront
132+
? 'assets/images/body_front_btn.png'
133+
: 'assets/images/body_back_btn.png',
134+
width: 60,
135+
height: 60,
136+
),
137+
),
138+
),
139+
],
140+
),
133141
),
134142
),
135143
),

0 commit comments

Comments
 (0)