@@ -28,7 +28,6 @@ class FiltersPageState extends State<FiltersPage> {
28
28
@override
29
29
Widget build (BuildContext context) {
30
30
return Scaffold (
31
- backgroundColor: Colors .white,
32
31
appBar: AppBar (
33
32
backgroundColor: Colors .yellow[700 ],
34
33
leading: IconButton (
@@ -113,20 +112,9 @@ class FiltersPageState extends State<FiltersPage> {
113
112
_buildFilterSection (
114
113
title: 'Age' ,
115
114
options: [
116
- Container (
117
- decoration: const BoxDecoration (
118
- border: Border (
119
- bottom: BorderSide (
120
- color: Colors .grey,
121
- width: 1.0 ,
122
- ),
123
- ),
124
- ),
125
- child: ListTile (
126
- leading:
127
- Icon (Icons .calendar_today, color: Colors .yellow[700 ]),
128
- title: Text (rangeLable),
129
- ),
115
+ ListTile (
116
+ leading: Icon (Icons .calendar_today, color: Colors .yellow[700 ]),
117
+ title: Text (rangeLable),
130
118
),
131
119
Padding (
132
120
padding: const EdgeInsets .symmetric (horizontal: 16.0 ),
@@ -162,7 +150,7 @@ class FiltersPageState extends State<FiltersPage> {
162
150
),
163
151
onPressed: () {},
164
152
child: const Text (
165
- 'APPLY ' ,
153
+ 'Apply ' ,
166
154
style: TextStyle (fontSize: 16 ),
167
155
),
168
156
),
@@ -179,7 +167,6 @@ class FiltersPageState extends State<FiltersPage> {
179
167
}) {
180
168
return Card (
181
169
elevation: 8.0 ,
182
- color: Colors .white,
183
170
shape: RoundedRectangleBorder (
184
171
borderRadius: BorderRadius .circular (16.0 ),
185
172
),
@@ -190,7 +177,10 @@ class FiltersPageState extends State<FiltersPage> {
190
177
crossAxisAlignment: CrossAxisAlignment .start,
191
178
children: [
192
179
ListTile (
193
- title: Text (title),
180
+ title: Text (
181
+ title,
182
+ style: const TextStyle (fontSize: 25 ),
183
+ ),
194
184
trailing: hasArrow ? const Icon (Icons .arrow_forward_ios) : null ,
195
185
),
196
186
Column (children: options),
@@ -202,48 +192,28 @@ class FiltersPageState extends State<FiltersPage> {
202
192
203
193
Widget _buildOptionRow (String text, StatelessWidget icon, bool selection,
204
194
BoolCallback onChange) {
205
- return Container (
206
- decoration: const BoxDecoration (
207
- border: Border (
208
- bottom: BorderSide (
209
- color: Colors .grey,
210
- width: 1.0 ,
211
- ),
212
- ),
213
- ),
214
- child: ListTile (
215
- leading: icon,
216
- title: Text (text),
217
- trailing: Checkbox (
218
- activeColor: Colors .yellow[700 ],
219
- checkColor: Colors .black,
220
- value: selection,
221
- onChanged: onChange),
222
- ),
195
+ return ListTile (
196
+ leading: icon,
197
+ title: Text (text),
198
+ trailing: Checkbox (
199
+ activeColor: Colors .yellow[700 ],
200
+ checkColor: Colors .black,
201
+ value: selection,
202
+ onChanged: onChange),
223
203
);
224
204
}
225
205
226
206
Widget _buildOptionRow2 (String text, StatelessWidget icon) {
227
- return Container (
228
- decoration: const BoxDecoration (
229
- border: Border (
230
- bottom: BorderSide (
231
- color: Colors .grey,
232
- width: 1.0 ,
233
- ),
234
- ),
235
- ),
236
- child: ListTile (
237
- leading: icon,
238
- title: Text (text),
239
- trailing: IconButton (
240
- iconSize: 30 ,
241
- icon: const Icon (Icons .chevron_right),
242
- onPressed: () {
243
- debugPrint ("Print" );
244
- },
245
- color: Colors .grey,
246
- ),
207
+ return ListTile (
208
+ leading: icon,
209
+ title: Text (text),
210
+ trailing: IconButton (
211
+ iconSize: 30 ,
212
+ icon: const Icon (Icons .chevron_right),
213
+ onPressed: () {
214
+ debugPrint ("Print" );
215
+ },
216
+ color: Colors .grey,
247
217
),
248
218
);
249
219
}
0 commit comments