Skip to content

Commit

Permalink
fix: don't show error icon on videos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ascenio committed Jul 8, 2024
1 parent 4def1ec commit f6ba54b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ class ImageOrVideoWidget extends StatelessWidget {
fit: BoxFit.cover,
errorWidget: (context, url, error) => ColoredBox(
color: surfaceColor,
child: const Column(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
Icons.error_outline,
size: 64,
color: isVideo ? Colors.transparent : null,
),
SizedBox(height: 16),
Text(
const SizedBox(height: 16),
const Text(
'Could not show the image',
)
],
Expand Down

0 comments on commit f6ba54b

Please sign in to comment.