-
Notifications
You must be signed in to change notification settings - Fork 2
/
letsgo.dart
178 lines (173 loc) · 6.15 KB
/
letsgo.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
import 'package:flutter/material.dart';
//import 'Main_HomePage.dart';
class letsgo extends StatefulWidget{
@override
_letsgoState createState() => _letsgoState();
}
class _letsgoState extends State<letsgo>
{
@override
Widget build(BuildContext context)
{
final deviceWidth = MediaQuery.of(context).size.width;
final standardDeviceWidth = 375;
final Factor_Width = deviceWidth/standardDeviceWidth;
final deviceHeight = MediaQuery.of(context).size.height;
final standardDeviceHeight = 812;
final Factor_Height = deviceHeight/standardDeviceHeight;
return GestureDetector(
onTap: ()
{
FocusScope.of(context).unfocus();
},
child: Scaffold(
resizeToAvoidBottomInset: false,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Container( // 공백
height: 32 * Factor_Height,
),
Container( // 사진
height: 223 * Factor_Height,
width: 312 * Factor_Height,
child: Image.asset(
'assets/letsgo.png',
height: 223 * Factor_Height,
width: 312 * Factor_Height,
),
),
Container( // 공백
height: 81 * Factor_Height,
),
Container( // '당신의 무한한 가능성을 응원합니다!' 텍스트
height: 60 * Factor_Height,
child: Column(
children: [
Expanded(
child: Text(
'당신의 무한한 가능성을',
style: TextStyle(
fontSize: 30 * Factor_Height,
fontFamily: 'Spoqa-Bold',
color: Color(0xFFC3C3C3C),
),
textAlign: TextAlign.center,
),
),
Expanded(
child: Text(
'응원합니다!',
style: TextStyle(
fontSize: 30 * Factor_Height,
fontFamily: 'Spoqa-Bold',
color: Color(0xFF3C3C3C),
),
textAlign: TextAlign.center,
),
),
],
),
),
Container( // 공백
height: 87 * Factor_Height,
),
Container( // '자신을 뽐낼 수 있는 ~ 기원하며' 텍스트
height: 69 * Factor_Height,
child: Column(
children: [
Expanded(
child: Text(
'자신을 뽐낼 수 있는 저희 앱에',
style: TextStyle(
fontSize: 18 * Factor_Height,
fontFamily: 'Spoqa-Medium',
color: Color(0xFF797979),
),
textAlign: TextAlign.center,
),
),
Expanded(
child: Text(
'오신 것을 진심으로 환영합니다!',
style: TextStyle(
fontSize: 18 * Factor_Height,
fontFamily: 'Spoqa-Medium',
color: Color(0xFF797979),
),
textAlign: TextAlign.center,
),
),
Expanded(
child: Text(
'앞으로 행복한 일만 일어나길 기원하며',
style: TextStyle(
fontSize: 18 * Factor_Height,
fontFamily: 'Spoqa-Medium',
color: Color(0xFF797979),
),
textAlign: TextAlign.center,
),
),
],
),
),
Container( // 공백
height: 53 * Factor_Height,
),
Container( // '함께 뛰어들어가봅시다!' 버튼
height: 53 * Factor_Height,
child: Container(
width: 300 * Factor_Width,
child: GestureDetector(
onTap:()
{
/*
Navigator.push(
context,
MaterialPageRoute(builder:
(context) => MyApp()),
);
*/
},
child: Stack(
children: [
Center(
child: Opacity(
opacity: 0.73,
child: Container(
decoration: BoxDecoration(
color: Color(0xFFCD0051),
borderRadius: BorderRadius.circular(12),
),
width: 300 * Factor_Width,
),
),
),
Center(
child: Text(
'함께 뛰어들어가봅시다!',
style: TextStyle(
fontSize: 17 * Factor_Width,
fontFamily: 'Spoqa-Bold',
color: Colors.white,
),
),
),
],
),
),
),
),
Container(
height: 83 * Factor_Height,
),
] ,
),
),
),
);
}
}