Show the play button overlay for network videos too
This commit is contained in:
parent
f6d3a7e6bd
commit
134b1f417e
1 changed files with 11 additions and 8 deletions
|
@ -38,17 +38,20 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var image;
|
||||
if (widget.file.localID == null) {
|
||||
return _getNetworkImage();
|
||||
image = _getNetworkImage();
|
||||
} else {
|
||||
_loadLocalImage(context);
|
||||
if (_imageProvider != null) {
|
||||
image = Image(
|
||||
image: _imageProvider,
|
||||
fit: widget.fit,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
_loadLocalImage(context);
|
||||
var content;
|
||||
if (_imageProvider != null) {
|
||||
final image = Image(
|
||||
image: _imageProvider,
|
||||
fit: widget.fit,
|
||||
);
|
||||
if (image != null) {
|
||||
if (widget.file.fileType == FileType.video) {
|
||||
content = Stack(
|
||||
children: [
|
||||
|
|
Loading…
Add table
Reference in a new issue