Changed placeholder for non-previewable files

This commit is contained in:
Elias Müller 2023-02-25 15:59:21 +01:00
parent 0a62207e4a
commit 2f91b89e0f

@ -39,7 +39,12 @@ class ChatMessage {
return CachedNetworkImage(
errorWidget: (context, url, error) {
return Text("Datei: ${file!.name}", style: const TextStyle(fontWeight: FontWeight.bold));
return Column(
children: [
const Icon(Icons.image_not_supported_outlined, size: 35),
Text("Keine Dateivorschau:\n${file!.name}", style: const TextStyle(fontWeight: FontWeight.bold))
],
);
},
alignment: Alignment.center,
placeholder: (context, url) {