From d75420e72ffbd8422b55711e838f226530c9254c Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 27 Mar 2023 15:27:19 -0700 Subject: [PATCH] Limit Image Cache to Fixed Size for Clarity --- lib/widgets/filebubble.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index 735eea06..64d2bc78 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -51,8 +51,9 @@ class FileBubbleState extends State { 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,