Skip to content

Commit

Permalink
Update details_panel.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Jun 24, 2024
1 parent 2cf6733 commit 2257e17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/components/details_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,13 @@ class _DetailsPanelState extends State<DetailsPanel> {
size: 32,
),
},
if (FileTypeHelper.isImage(widget.item.contentType)) ...{
if (widget.item is FileDataTableItem &&
FileTypeHelper.isImage(widget.item.contentType) &&
(widget.item as FileDataTableItem).thumbnail ==
null) ...{
ArDriveIconButton(
icon: ArDriveIcons.image(),
tooltip: 'Create Thumbnail',
onPressed: () {
showArDriveDialog(
context,
Expand Down

0 comments on commit 2257e17

Please sign in to comment.