Fixup Debug Mode Overlaps
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
8acefb8b0b
commit
e4b2e7936f
|
@ -68,8 +68,8 @@ class FileMessage extends Message {
|
||||||
padding: EdgeInsets.all(1.0),
|
padding: EdgeInsets.all(1.0),
|
||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
clipBehavior: Clip.antiAliasWithSaveLayer,
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
||||||
width: 100,
|
constraints: BoxConstraints(minHeight: 50, maxHeight: 50, minWidth: 50, maxWidth: 300),
|
||||||
height: 50,
|
alignment: Alignment.centerLeft,
|
||||||
child: FileBubble(
|
child: FileBubble(
|
||||||
nameSuggestion,
|
nameSuggestion,
|
||||||
rootHash,
|
rootHash,
|
||||||
|
|
|
@ -52,20 +52,21 @@ class FileBubbleState extends State<FileBubble> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget getPreview(context) {
|
Widget getPreview(context) {
|
||||||
return Image.file(
|
return Container(
|
||||||
myFile!,
|
constraints: BoxConstraints(maxHeight: min(MediaQuery.of(context).size.height, 150)),
|
||||||
// limit the amount of space the image can decode too, we keep this high-ish to allow quality previews...
|
child: Image.file(
|
||||||
cacheWidth: 1024,
|
myFile!,
|
||||||
cacheHeight: 1024,
|
// limit the amount of space the image can decode too, we keep this high-ish to allow quality previews...
|
||||||
filterQuality: FilterQuality.medium,
|
cacheWidth: 1024,
|
||||||
fit: BoxFit.scaleDown,
|
cacheHeight: 1024,
|
||||||
alignment: Alignment.center,
|
filterQuality: FilterQuality.medium,
|
||||||
height: min(MediaQuery.of(context).size.height * 0.30, 150),
|
fit: BoxFit.scaleDown,
|
||||||
isAntiAlias: false,
|
alignment: Alignment.center,
|
||||||
errorBuilder: (context, error, stackTrace) {
|
isAntiAlias: false,
|
||||||
return MalformedBubble();
|
errorBuilder: (context, error, stackTrace) {
|
||||||
},
|
return MalformedBubble();
|
||||||
);
|
},
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -392,7 +393,7 @@ class FileBubbleState extends State<FileBubble> {
|
||||||
title: Text(meta),
|
title: Text(meta),
|
||||||
trailing: IconButton(
|
trailing: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
color: Provider.of<Settings>(bcontext, listen: false).theme.toolbarIconColor,
|
color: Provider.of<Settings>(bcontext, listen: false).theme.mainTextColor,
|
||||||
iconSize: 32,
|
iconSize: 32,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(bcontext, true);
|
Navigator.pop(bcontext, true);
|
||||||
|
|
|
@ -92,17 +92,18 @@ class QuotedMessageBubbleState extends State<QuotedMessageBubble> {
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: EdgeInsets.all(5),
|
margin: EdgeInsets.all(5),
|
||||||
padding: EdgeInsets.all(5),
|
padding: EdgeInsets.all(5),
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: fromMe ? Provider.of<Settings>(context).theme.messageFromOtherBackgroundColor : Provider.of<Settings>(context).theme.messageFromMeBackgroundColor,
|
color: fromMe ? Provider.of<Settings>(context).theme.messageFromOtherBackgroundColor : Provider.of<Settings>(context).theme.messageFromMeBackgroundColor,
|
||||||
),
|
),
|
||||||
height: 75,
|
height: 75,
|
||||||
child: Column(crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [
|
||||||
Align(alignment: Alignment.centerLeft, child: wdgReplyingTo),
|
Align(alignment: Alignment.centerLeft, child: wdgReplyingTo),
|
||||||
Row(mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [
|
Flexible(
|
||||||
|
child: Row(mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [
|
||||||
Padding(padding: EdgeInsets.symmetric(vertical: 5.0, horizontal: 10.0), child: Icon(Icons.reply, size: 32, color: qTextColor)),
|
Padding(padding: EdgeInsets.symmetric(vertical: 5.0, horizontal: 10.0), child: Icon(Icons.reply, size: 32, color: qTextColor)),
|
||||||
IntrinsicWidth(child: qMessage.getPreviewWidget(context)),
|
Flexible(child: IntrinsicWidth(child: qMessage.getPreviewWidget(context))),
|
||||||
])
|
]))
|
||||||
])),
|
])),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue