Limit Image Cache to Fixed Size for Clarity

This commit is contained in:
Sarah Jamie Lewis 2023-03-27 15:27:19 -07:00
parent 394cdc2b11
commit d75420e72f
1 changed files with 2 additions and 1 deletions

View File

@ -51,8 +51,9 @@ class FileBubbleState extends State<FileBubble> {
Widget getPreview(context) {
return Image.file(
myFile!,
cacheWidth: (MediaQuery.of(context).size.width * 0.6).floor(),
// limit the amount of space the image can decode too, we keep this high-ish to allow quality previews...
cacheWidth: 1024,
cacheHeight: 1024,
filterQuality: FilterQuality.medium,
fit: BoxFit.scaleDown,
alignment: Alignment.center,