Closed
Description
For all that initially have the images coming from a database or other source, the code only accepts String or File types if not running as a web application. I would suggest to also accept Image objects as fallback in case s.o. prepares them.
The suggested change would be from line 168 and the Container would look like this:
Container(
width: widget.imageWidth,
height: widget.imageHeight,
margin: widget.imageMargin,
child: kIsWeb
? Image.memory(item, fit: BoxFit.cover)
: item is String
? Image.network(item, fit: BoxFit.cover)
: item is File
? Image.file(item, fit: BoxFit.cover)
: item,
),
Activity