Changed placeholder for non-previewable files
This commit is contained in:
parent
0a62207e4a
commit
2f91b89e0f
@ -39,7 +39,12 @@ class ChatMessage {
|
|||||||
|
|
||||||
return CachedNetworkImage(
|
return CachedNetworkImage(
|
||||||
errorWidget: (context, url, error) {
|
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,
|
alignment: Alignment.center,
|
||||||
placeholder: (context, url) {
|
placeholder: (context, url) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user