|
1 | 1 | import 'package:flutter/material.dart'; |
2 | | -import 'package:ongi/screens/health/health_home_screen.dart'; |
3 | | -import 'package:ongi/screens/home/home_screen.dart'; |
| 2 | +import 'package:ongi/screens/bottom_nav.dart'; |
4 | 3 | import 'package:ongi/core/app_colors.dart'; |
5 | 4 | import 'package:ongi/core/app_background.dart'; |
6 | 5 |
|
@@ -42,66 +41,64 @@ class ParentInitScreen extends StatelessWidget { |
42 | 41 | ), |
43 | 42 | ), |
44 | 43 |
|
45 | | - Expanded( |
46 | | - child: Center( |
47 | | - child: Row( |
48 | | - mainAxisAlignment: MainAxisAlignment.center, |
49 | | - children: [ |
50 | | - ElevatedButton( |
51 | | - onPressed: () { |
52 | | - Navigator.push( |
53 | | - context, |
54 | | - MaterialPageRoute( |
55 | | - builder: (_) => const HealthHomeScreen(), |
56 | | - ), |
57 | | - ); |
58 | | - }, |
59 | | - style: ElevatedButton.styleFrom( |
60 | | - elevation: 0, |
61 | | - minimumSize: const Size(160, 200), |
62 | | - padding: const EdgeInsets.all(24), |
63 | | - foregroundColor: AppColors.ongiOrange, |
64 | | - backgroundColor: Colors.white, |
65 | | - textStyle: const TextStyle( |
66 | | - fontSize: 36, |
67 | | - fontWeight: FontWeight.w800, |
68 | | - ), |
69 | | - shape: RoundedRectangleBorder( |
70 | | - borderRadius: BorderRadius.circular(20), |
71 | | - ), |
| 44 | + const SizedBox(height: 85), |
| 45 | + Row( |
| 46 | + mainAxisAlignment: MainAxisAlignment.center, |
| 47 | + children: [ |
| 48 | + ElevatedButton( |
| 49 | + onPressed: () { |
| 50 | + Navigator.pushReplacement( |
| 51 | + context, |
| 52 | + MaterialPageRoute( |
| 53 | + builder: (_) => const BottomNavScreen(initialIndex: 1), |
72 | 54 | ), |
73 | | - child: const Text('건강\n기록', textAlign: TextAlign.left), |
| 55 | + ); |
| 56 | + }, |
| 57 | + style: ElevatedButton.styleFrom( |
| 58 | + elevation: 0, |
| 59 | + minimumSize: const Size(160, 200), |
| 60 | + padding: const EdgeInsets.all(24), |
| 61 | + foregroundColor: AppColors.ongiOrange, |
| 62 | + backgroundColor: Colors.white, |
| 63 | + textStyle: const TextStyle( |
| 64 | + fontSize: 36, |
| 65 | + fontWeight: FontWeight.w800, |
| 66 | + ), |
| 67 | + shape: RoundedRectangleBorder( |
| 68 | + borderRadius: BorderRadius.circular(20), |
74 | 69 | ), |
75 | | - const SizedBox(width: 30), |
76 | | - ElevatedButton( |
77 | | - onPressed: () { |
78 | | - Navigator.push( |
79 | | - context, |
80 | | - MaterialPageRoute( |
81 | | - builder: (_) => const HomeScreen(), |
82 | | - ), |
83 | | - ); |
84 | | - }, |
85 | | - style: ElevatedButton.styleFrom( |
86 | | - elevation: 0, |
87 | | - minimumSize: const Size(160, 200), |
88 | | - padding: const EdgeInsets.all(24), |
89 | | - foregroundColor: AppColors.ongiOrange, |
90 | | - backgroundColor: Colors.white, |
91 | | - textStyle: const TextStyle( |
92 | | - fontSize: 36, |
93 | | - fontWeight: FontWeight.w800, |
94 | | - ), |
95 | | - shape: RoundedRectangleBorder( |
96 | | - borderRadius: BorderRadius.circular(20), |
97 | | - ), |
| 70 | + ), |
| 71 | + child: const Text('건강\n기록', textAlign: TextAlign.left), |
| 72 | + ), |
| 73 | + const SizedBox(width: 30), |
| 74 | + ElevatedButton( |
| 75 | + onPressed: () { |
| 76 | + Navigator.pushReplacement( |
| 77 | + context, |
| 78 | + MaterialPageRoute( |
| 79 | + builder: (_) => const BottomNavScreen(initialIndex: 0), |
98 | 80 | ), |
99 | | - child: const Text('홈', textAlign: TextAlign.left), |
| 81 | + ); |
| 82 | + }, |
| 83 | + style: ElevatedButton.styleFrom( |
| 84 | + elevation: 0, |
| 85 | + minimumSize: const Size(160, 200), |
| 86 | + padding: const EdgeInsets.all(24), |
| 87 | + foregroundColor: AppColors.ongiOrange, |
| 88 | + backgroundColor: Colors.white, |
| 89 | + textStyle: const TextStyle( |
| 90 | + fontSize: 36, |
| 91 | + fontWeight: FontWeight.w800, |
| 92 | + ), |
| 93 | + shape: RoundedRectangleBorder( |
| 94 | + borderRadius: BorderRadius.circular(20), |
100 | 95 | ), |
101 | | - ], |
| 96 | + ), |
| 97 | + child: const Text('홈', textAlign: TextAlign.left), |
102 | 98 | ), |
103 | | - ), |
| 99 | + ], |
104 | 100 | ), |
| 101 | + const Spacer(), |
105 | 102 | ], |
106 | 103 | ), |
107 | 104 | ), |
|
0 commit comments