@@ -193,25 +193,28 @@ class SendFileDialogState extends State<SendFileDialog> {
193
193
padding: const EdgeInsets .only (bottom: 16.0 ),
194
194
child: SizedBox (
195
195
height: 256 ,
196
- child: ListView .builder (
197
- itemCount: widget.files.length,
198
- scrollDirection: Axis .horizontal,
199
- itemBuilder: (context, i) => Padding (
200
- padding: const EdgeInsets .only (right: 8.0 ),
201
- child: Material (
202
- borderRadius: BorderRadius .circular (
203
- AppConfig .borderRadius / 2 ,
196
+ child: Center (
197
+ child: ListView .builder (
198
+ shrinkWrap: true ,
199
+ itemCount: widget.files.length,
200
+ scrollDirection: Axis .horizontal,
201
+ itemBuilder: (context, i) => Padding (
202
+ padding: const EdgeInsets .only (right: 8.0 ),
203
+ child: Material (
204
+ borderRadius: BorderRadius .circular (
205
+ AppConfig .borderRadius / 2 ,
206
+ ),
207
+ clipBehavior: Clip .hardEdge,
208
+ child: kIsWeb
209
+ ? Image .network (
210
+ widget.files[i].path,
211
+ height: 256 ,
212
+ )
213
+ : Image .file (
214
+ File (widget.files[i].path),
215
+ height: 256 ,
216
+ ),
204
217
),
205
- clipBehavior: Clip .hardEdge,
206
- child: kIsWeb
207
- ? Image .network (
208
- widget.files[i].path,
209
- height: 256 ,
210
- )
211
- : Image .file (
212
- File (widget.files[i].path),
213
- height: 256 ,
214
- ),
215
218
),
216
219
),
217
220
),
0 commit comments