Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 43 additions & 35 deletions frontend/ongi/lib/screens/health/health_status_input_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class HealthStatusInputScreen extends StatefulWidget {
const HealthStatusInputScreen({super.key});

@override
State<HealthStatusInputScreen> createState() => _HealthStatusInputScreenState();
State<HealthStatusInputScreen> createState() =>
_HealthStatusInputScreenState();
}

class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
Expand Down Expand Up @@ -84,7 +85,7 @@ class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
),
),
Positioned(
top: circleSize * 0.3 + 99,
top: circleSize * 0.3 + 65,
left: 0,
right: 0,
bottom: 0,
Expand All @@ -93,43 +94,50 @@ class _HealthStatusInputScreenState extends State<HealthStatusInputScreen> {
children: [
Center(child: DateCarousel()),
Expanded(
child: Container(
width: double.infinity,
margin: const EdgeInsets.only(left: 80, right: 80, bottom: 20),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
),
child: Stack(
children: [
Center(
child: Image.asset(
isFront
? 'assets/images/body_front.png'
: 'assets/images/body_back.png',
height: 400, // 필요시 반응형으로 조정
fit: BoxFit.contain,
),
),
Positioned(
right: 16,
bottom: 16,
child: GestureDetector(
onTap: () {
setState(() {
isFront = !isFront;
});
},
child: Transform.translate(
offset: const Offset(0, -10),
child: Container(
width: double.infinity,
margin: const EdgeInsets.only(
left: 80,
right: 80,
bottom: 10,
),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20),
),
child: Stack(
children: [
Center(
child: Image.asset(
isFront
? 'assets/images/body_front_btn.png'
: 'assets/images/body_back_btn.png',
width: 60,
height: 60,
? 'assets/images/body_front.png'
: 'assets/images/body_back.png',
height: 400, // 필요시 반응형으로 조정
fit: BoxFit.contain,
),
),
),
],
Positioned(
right: 16,
bottom: 16,
child: GestureDetector(
onTap: () {
setState(() {
isFront = !isFront;
});
},
child: Image.asset(
isFront
? 'assets/images/body_front_btn.png'
: 'assets/images/body_back_btn.png',
width: 60,
height: 60,
),
),
),
],
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion frontend/ongi/lib/screens/signup/mode_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class ModeScreen extends StatelessWidget {
),
child: const Text("부모"),
),
const SizedBox(width: 25),
const SizedBox(width: 20),
ElevatedButton(
onPressed: () => _setModeAndRegister(context, 'child'),
style: ElevatedButton.styleFrom(
Expand Down
Loading