chore: Follow up send multiple images
This commit is contained in:
parent
363eabbe1c
commit
ae0999e6ce
1 changed files with 21 additions and 18 deletions
|
|
@ -193,25 +193,28 @@ class SendFileDialogState extends State<SendFileDialog> {
|
||||||
padding: const EdgeInsets.only(bottom: 16.0),
|
padding: const EdgeInsets.only(bottom: 16.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 256,
|
height: 256,
|
||||||
child: ListView.builder(
|
child: Center(
|
||||||
itemCount: widget.files.length,
|
child: ListView.builder(
|
||||||
scrollDirection: Axis.horizontal,
|
shrinkWrap: true,
|
||||||
itemBuilder: (context, i) => Padding(
|
itemCount: widget.files.length,
|
||||||
padding: const EdgeInsets.only(right: 8.0),
|
scrollDirection: Axis.horizontal,
|
||||||
child: Material(
|
itemBuilder: (context, i) => Padding(
|
||||||
borderRadius: BorderRadius.circular(
|
padding: const EdgeInsets.only(right: 8.0),
|
||||||
AppConfig.borderRadius / 2,
|
child: Material(
|
||||||
|
borderRadius: BorderRadius.circular(
|
||||||
|
AppConfig.borderRadius / 2,
|
||||||
|
),
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
|
child: kIsWeb
|
||||||
|
? Image.network(
|
||||||
|
widget.files[i].path,
|
||||||
|
height: 256,
|
||||||
|
)
|
||||||
|
: Image.file(
|
||||||
|
File(widget.files[i].path),
|
||||||
|
height: 256,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
clipBehavior: Clip.hardEdge,
|
|
||||||
child: kIsWeb
|
|
||||||
? Image.network(
|
|
||||||
widget.files[i].path,
|
|
||||||
height: 256,
|
|
||||||
)
|
|
||||||
: Image.file(
|
|
||||||
File(widget.files[i].path),
|
|
||||||
height: 256,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue