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),
|
||||
child: SizedBox(
|
||||
height: 256,
|
||||
child: ListView.builder(
|
||||
itemCount: widget.files.length,
|
||||
scrollDirection: Axis.horizontal,
|
||||
itemBuilder: (context, i) => Padding(
|
||||
padding: const EdgeInsets.only(right: 8.0),
|
||||
child: Material(
|
||||
borderRadius: BorderRadius.circular(
|
||||
AppConfig.borderRadius / 2,
|
||||
child: Center(
|
||||
child: ListView.builder(
|
||||
shrinkWrap: true,
|
||||
itemCount: widget.files.length,
|
||||
scrollDirection: Axis.horizontal,
|
||||
itemBuilder: (context, i) => Padding(
|
||||
padding: const EdgeInsets.only(right: 8.0),
|
||||
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
Reference in a new issue