Load full image if thumbnail isn't available
This commit is contained in:
parent
69bc22dc39
commit
1e336897d4
1 changed files with 6 additions and 5 deletions
|
@ -89,11 +89,12 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
|||
}
|
||||
|
||||
void _loadNetworkImage() {
|
||||
_imageProvider = Image.network(Configuration.instance.getHttpEndpoint() +
|
||||
"/" +
|
||||
widget.photo.thumbnailPath ??
|
||||
widget.photo.remotePath)
|
||||
.image;
|
||||
final path = widget.photo.thumbnailPath.isNotEmpty
|
||||
? widget.photo.thumbnailPath
|
||||
: widget.photo.remotePath;
|
||||
_imageProvider =
|
||||
Image.network(Configuration.instance.getHttpEndpoint() + "/" + path)
|
||||
.image;
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Add table
Reference in a new issue