Limit Image Cache to Fixed Size for Clarity
This commit is contained in:
parent
394cdc2b11
commit
d75420e72f
|
@ -51,8 +51,9 @@ class FileBubbleState extends State<FileBubble> {
|
||||||
Widget getPreview(context) {
|
Widget getPreview(context) {
|
||||||
return Image.file(
|
return Image.file(
|
||||||
myFile!,
|
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...
|
// 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,
|
filterQuality: FilterQuality.medium,
|
||||||
fit: BoxFit.scaleDown,
|
fit: BoxFit.scaleDown,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|
Loading…
Reference in New Issue