forked from cwtch.im/cwtch-ui
Scaling + Android ChangePassword
This commit is contained in:
parent
6f3d5b65cd
commit
845ce3b546
|
@ -115,7 +115,7 @@ class FileBubbleState extends State<FileBubble> {
|
||||||
myFile!,
|
myFile!,
|
||||||
cacheWidth: 2048, // limit the amount of space the image can decode too, we keep this high-ish to allow quality previews...
|
cacheWidth: 2048, // limit the amount of space the image can decode too, we keep this high-ish to allow quality previews...
|
||||||
filterQuality: FilterQuality.medium,
|
filterQuality: FilterQuality.medium,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.scaleDown,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
height: MediaQuery.of(bcontext).size.height * 0.30,
|
height: MediaQuery.of(bcontext).size.height * 0.30,
|
||||||
isAntiAlias: false,
|
isAntiAlias: false,
|
||||||
|
@ -354,8 +354,9 @@ class FileBubbleState extends State<FileBubble> {
|
||||||
meta,
|
meta,
|
||||||
Image.file(
|
Image.file(
|
||||||
myFile,
|
myFile,
|
||||||
cacheHeight: (MediaQuery.of(context).size.height * 0.6).floor(),
|
|
||||||
cacheWidth: (MediaQuery.of(context).size.width * 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,
|
fit: BoxFit.scaleDown,
|
||||||
),
|
),
|
||||||
Visibility(visible: !Platform.isAndroid, child: Text(myFile.path, textAlign: TextAlign.center)),
|
Visibility(visible: !Platform.isAndroid, child: Text(myFile.path, textAlign: TextAlign.center)),
|
||||||
|
|
Loading…
Reference in New Issue