-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TW-762: quoted image message #1019
Conversation
This PR has been deployed to https://linagora.github.io/twake-on-matrix/1019 |
eb4bbb6
to
54197e9
Compare
54197e9
to
a485c3d
Compare
lib/widgets/mxc_image.dart
Outdated
width: widget.width ?? 256, | ||
height: widget.height ?? 256, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sherlockvn please review it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you set placeholder
in where you use, instead of change the MxcImage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
isThumbnail: true, | ||
width: ReplyContentStyle.fontSizeDisplayContent * 2, | ||
height: ReplyContentStyle.fontSizeDisplayContent * 2, | ||
fit: BoxFit.cover, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add placeholder is BlurHash of event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!:)
if (displayEvent.hasAttachment) | ||
ClipRRect( | ||
borderRadius: ReplyContentStyle.previewedImageBorderRadius, | ||
child: MxcImage( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i mean set placeholder
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
lib/widgets/mxc_image.dart
Outdated
key: Key(placeholderKey), | ||
child: CircularProgressIndicator.adaptive(), | ||
SizedBox( | ||
width: widget.width ?? 256, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the default size 256, it will make image resize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
a5b98ac
to
e3da172
Compare
e3da172
to
67fc2bd
Compare
67fc2bd
to
14056a5
Compare
up to date |
Please update your demo on other size of images |
@sherlockvn please share him the image test sets which we do before. Thanks |
MxcImage also have |
IMO: Remove small icon in descriptions, WDYT? |
Twake.Chat.-.Google.Chrome.2023-11-22.11-07-08.mp4
#762