@@ -44,12 +44,15 @@ class _SendMoneyState extends State<SendMoney> {
44
44
45
45
@override
46
46
Widget build (BuildContext context) {
47
+ final theme = Theme .of (context);
48
+
47
49
return Scaffold (
48
50
backgroundColor: Colors .white,
49
51
appBar: AppBar (
52
+ scrolledUnderElevation: 0 ,
50
53
backgroundColor: Colors .transparent,
51
54
elevation: 0 ,
52
- title: Text ('Send Money' , style: TextStyle (color : Colors .black ),),
55
+ title: Text ('Send Money' , style: theme.textTheme.titleMedium ? . copyWith (fontSize : 18 ),),
53
56
leading: BackButton (color: Colors .black,),
54
57
),
55
58
body: SingleChildScrollView (
@@ -58,7 +61,7 @@ class _SendMoneyState extends State<SendMoney> {
58
61
child: Column (
59
62
crossAxisAlignment: CrossAxisAlignment .center,
60
63
children: [
61
-
10000
SizedBox (height: 50 ,),
64
+ SizedBox (height: 32 ,),
62
65
FadeInDown (
63
66
from: 100 ,
64
67
duration: Duration (milliseconds: 500 ),
@@ -75,19 +78,19 @@ class _SendMoneyState extends State<SendMoney> {
75
78
child: Image .asset (widget.avatar)),
76
79
),
77
80
),
78
- SizedBox (height: 50 ,),
81
+ SizedBox (height: 32 ,),
79
82
FadeInUp (
80
83
from: 60 ,
81
84
delay: Duration (milliseconds: 500 ),
82
85
duration: Duration (milliseconds: 500 ),
83
- child: Text ("Send Money To" , style: TextStyle (color : Colors .grey) ,)),
84
- SizedBox (height: 10 ,),
86
+ child: Text ("Send Money To" , style: theme.textTheme.titleSmall ,)),
87
+ SizedBox (height: 8 ,),
85
88
FadeInUp (
86
89
from: 30 ,
87
90
delay: Duration (milliseconds: 800 ),
88
91
duration: Duration (milliseconds: 500 ),
89
- child: Text (widget.name, style: TextStyle (fontSize : 24 , fontWeight: FontWeight .bold ),)),
90
- SizedBox (height : 20 ,),
92
+ child: Text (widget.name, style: theme.textTheme.titleLarge ? . copyWith ( fontWeight: FontWeight .w800 ),)),
93
+
91
94
FadeInUp (
92
95
from: 40 ,
93
96
delay: Duration (milliseconds: 800 ),
@@ -132,14 +135,14 @@ class _SendMoneyState extends State<SendMoney> {
132
135
),
133
136
),
134
137
),
135
- SizedBox (height: 10 ,),
138
+ SizedBox (height: 16 ,),
136
139
// note textfield
137
140
FadeInUp (
138
141
from: 60 ,
139
- delay: Duration (milliseconds: 800 ),
142
+ delay: Duration (milliseconds: 200 ),
140
143
duration: Duration (milliseconds: 500 ),
141
144
child: AnimatedContainer (
142
- margin: EdgeInsets .symmetric (horizontal: 30 ),
145
+ margin: EdgeInsets .symmetric (horizontal: 16 ),
143
146
duration: Duration (milliseconds: 500 ),
144
147
decoration: BoxDecoration (
145
148
color: Colors .white,
@@ -163,14 +166,14 @@ class _SendMoneyState extends State<SendMoney> {
163
166
),
164
167
),
165
168
),
166
- SizedBox (height: 20 ,),
169
+ SizedBox (height: 16 ,),
167
170
FadeInUp (
168
171
from: 60 ,
169
172
delay: Duration (milliseconds: 800 ),
170
173
duration: Duration (milliseconds: 500 ),
171
174
child: Container (
172
175
height: 50 ,
173
- padding: EdgeInsets .symmetric (horizontal: 30 ),
176
+ padding: EdgeInsets .symmetric (horizontal: 16 ),
174
177
child: ListView .builder (
175
178
scrollDirection: Axis .horizontal,
176
179
itemCount: _feedbacks.length,
@@ -187,31 +190,28 @@ class _SendMoneyState extends State<SendMoney> {
187
190
_focusNode.requestFocus ();
188
191
},
189
192
child: Container (
190
- margin: EdgeInsets .only (right: 20 ),
193
+ margin: EdgeInsets .only (right: 8 ),
191
194
padding: EdgeInsets .symmetric (horizontal: 20 , vertical: 8 ),
192
195
decoration: BoxDecoration (
193
196
color: Colors .white,
194
197
borderRadius: BorderRadius .circular (8 ),
195
- border: Border .all (color: Colors .grey.shade200 , width: 2 ),
198
+ border: Border .all (color: Colors .grey.shade300 , width: 1 ),
196
199
),
197
- child: Text (_feedbacks[index], style: TextStyle (
198
- color: Colors .grey.shade800,
199
- fontSize: 16
200
- ),),
200
+ child: Text (_feedbacks[index], style: theme.textTheme.titleMedium,),
201
201
),
202
202
),
203
203
);
204
204
},
205
205
),
206
206
),
207
207
),
208
- SizedBox (height: 50 ,),
208
+ SizedBox (height: 32 ,),
209
209
FadeInUp (
210
210
duration: Duration (milliseconds: 500 ),
211
211
child: Padding (
212
- padding: const EdgeInsets .symmetric (horizontal: 50 .0 ),
212
+ padding: const EdgeInsets .symmetric (horizontal: 16 .0 ),
213
213
child: Material (
214
- elevation: 5 ,
214
+ elevation: 0 ,
215
215
borderRadius: BorderRadius .circular (10 ),
216
216
color: Colors .black,
217
217
child: MaterialButton (
@@ -225,6 +225,7 @@ class _SendMoneyState extends State<SendMoney> {
225
225
),
226
226
),
227
227
),
228
+ SizedBox (height: 32 ,),
228
229
],
229
230
),
230
231
),
0 commit comments