@@ -122,80 +122,6 @@ class _TorrentScreenState extends State<TorrentScreen> {
122
122
),
123
123
),
124
124
),
125
- Padding (
126
- padding: EdgeInsets .only (
127
- right: wp * 0.05 ,
128
- left: wp * 0.05 ,
129
- top: 0 ,
130
- bottom: 0 ),
131
- child: Row (
132
- mainAxisAlignment: MainAxisAlignment .center,
133
- crossAxisAlignment: CrossAxisAlignment .center,
134
- children: [
135
- Text (
136
- 'Filter type:' ,
137
- textAlign: TextAlign .center,
138
- style: TextStyle (
139
- color: ThemeProvider .theme.accentColor,
140
- fontSize: 18 ,
141
- fontWeight: FontWeight .bold,
142
- ),
143
- ),
144
- SizedBox (width: 5 ),
145
- Text (
146
- trackerURISelected == 'all' ||
147
- trackerURISelected == 'null' ||
148
- trackerURISelected == ''
149
- ? 'Filter by status'
150
- : 'Filter by trackers' ,
151
- textAlign: TextAlign .center,
152
- style: TextStyle (
153
- color: ThemeProvider
154
- .theme.primaryColorDark,
155
- fontSize: 18 ,
156
- fontWeight: FontWeight .bold,
157
- ),
158
- ),
159
- ],
160
- ),
161
- ),
162
- Padding (
163
- padding: EdgeInsets .only (
164
- right: wp * 0.05 ,
165
- left: wp * 0.05 ,
166
- top: hp * 0.005 ,
167
- bottom: hp * 0.02 ),
168
- child: Row (
169
- mainAxisAlignment: MainAxisAlignment .center,
170
- crossAxisAlignment: CrossAxisAlignment .center,
171
- children: [
172
- Text (
173
- 'Filter selected:' ,
174
- textAlign: TextAlign .center,
175
- style: TextStyle (
176
- color: ThemeProvider .theme.accentColor,
177
- fontSize: 18 ,
178
- fontWeight: FontWeight .bold,
179
- ),
180
- ),
181
- SizedBox (width: 5 ),
182
- Text (
183
- trackerURISelected == 'all' ||
184
- trackerURISelected == 'null' ||
185
- trackerURISelected == ''
186
- ? '${filterStatus .toString ().split ("." ).last }'
187
- : '$trackerURISelected ' ,
188
- textAlign: TextAlign .center,
189
- style: TextStyle (
190
- color: ThemeProvider
191
- .theme.primaryColorDark,
192
- fontSize: 18 ,
193
- fontWeight: FontWeight .bold,
194
- ),
195
- ),
196
- ],
197
- ),
198
- ),
199
125
Expanded (
200
126
child: Container (
201
127
height: 100 ,
@@ -210,42 +136,66 @@ class _TorrentScreenState extends State<TorrentScreen> {
210
136
decoration: InputDecoration (
211
137
isDense: true ,
212
138
contentPadding: EdgeInsets .symmetric (
213
- horizontal: 15 , vertical: 15 ),
139
+ horizontal: 20 , vertical: 20 ),
214
140
hintText: 'Search Torrent' ,
215
141
suffixIcon: Padding (
216
- padding: const EdgeInsets .all (5.0 ),
217
- child: Container (
218
- decoration: BoxDecoration (
219
- color: Colors .green,
220
- borderRadius:
221
- BorderRadius .circular (5 ),
142
+ padding: const EdgeInsets .only (right: 5 ),
143
+ child: ActionChip (
144
+ padding: EdgeInsets .all (0 ),
145
+ avatar: ClipRRect (
146
+ borderRadius: BorderRadius .circular (4 ),
147
+ child: Container (
148
+ decoration: BoxDecoration (
149
+ borderRadius: BorderRadius .circular (0 ),
150
+ color: Colors .green,
151
+ ),
152
+ height: 50 ,
153
+ width: 50 ,
154
+ child: Icon (
155
+ Icons .filter_list_alt,
156
+ color: Colors .white,
157
+ size: 20 ,
158
+ ),
159
+ )
222
160
),
223
- child: IconButton (
224
- icon: Icon (
225
- Icons .filter_list_alt,
226
- color: Colors .white,
227
- ),
228
- onPressed: () {
229
- showModalBottomSheet (
230
- shape: RoundedRectangleBorder (
231
- borderRadius:
232
- BorderRadius .only (
233
- topRight:
234
- Radius .circular (15 ),
235
- topLeft:
236
- Radius .circular (15 ),
237
- ),
161
+ label: Text (trackerURISelected == 'all' ||
162
+ trackerURISelected == 'null' ||
163
+ trackerURISelected == ''
164
+ ? '${filterStatus .toString ().split ("." ).last }'
165
+ : '$trackerURISelected ' ,
166
+ style: TextStyle (
167
+ color: ThemeProvider
168
+ .theme.primaryColorDark,
169
+ fontSize: 15 ,
170
+ fontWeight: FontWeight .normal,
171
+ ),),
172
+ onPressed: () {
173
+ showModalBottomSheet (
174
+ shape: RoundedRectangleBorder (
175
+ borderRadius:
176
+ BorderRadius .only (
177
+ topRight:
178
+ Radius .circular (15 ),
179
+ topLeft:
180
+ Radius .circular (15 ),
238
181
),
239
- isScrollControlled: true ,
240
- context: context,
241
- backgroundColor: ThemeProvider
242
- .theme.backgroundColor,
243
- builder: (context) {
244
- return FilterByStatus ();
245
- },
246
- );
247
- },
248
- ),
182
+ ),
183
+ isScrollControlled: true ,
184
+ context: context,
185
+ backgroundColor: ThemeProvider
186
+ .theme.backgroundColor,
187
+ builder: (context) {
188
+ return FilterByStatus ();
189
+ },
190
+ );
191
+ },
192
+ backgroundColor: Colors .transparent,
193
+ shape: RoundedRectangleBorder (
194
+ borderRadius: BorderRadius .circular (5 ),
195
+ side: BorderSide (
196
+ width: 1 ,
197
+ color: Colors .blueGrey,
198
+ )),
249
199
),
250
200
),
251
201
border: OutlineInputBorder (
0 commit comments