From 845ce3b5464d02a55de408cdc1fddf9f5afa3a4f Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Fri, 17 Dec 2021 17:02:24 -0800 Subject: [PATCH] Scaling + Android ChangePassword --- lib/widgets/filebubble.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index e824baf9..eeb412d1 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -115,7 +115,7 @@ class FileBubbleState extends State { myFile!, cacheWidth: 2048, // limit the amount of space the image can decode too, we keep this high-ish to allow quality previews... filterQuality: FilterQuality.medium, - fit: BoxFit.cover, + fit: BoxFit.scaleDown, alignment: Alignment.center, height: MediaQuery.of(bcontext).size.height * 0.30, isAntiAlias: false, @@ -354,8 +354,9 @@ class FileBubbleState extends State { meta, Image.file( myFile, - cacheHeight: (MediaQuery.of(context).size.height * 0.6).floor(), cacheWidth: (MediaQuery.of(context).size.width * 0.6).floor(), + width: (MediaQuery.of(context).size.width * 0.6), + height: (MediaQuery.of(context).size.height * 0.6), fit: BoxFit.scaleDown, ), Visibility(visible: !Platform.isAndroid, child: Text(myFile.path, textAlign: TextAlign.center)),