mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 06:55:12 +00:00
fix: mxc reactions not rendered correctly
This commit is contained in:
parent
e9d04b7217
commit
8260480d90
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,6 @@ class _Reaction extends StatelessWidget {
|
||||||
? Colors.white
|
? Colors.white
|
||||||
: Colors.black;
|
: Colors.black;
|
||||||
final color = Theme.of(context).colorScheme.background;
|
final color = Theme.of(context).colorScheme.background;
|
||||||
final fontSize = DefaultTextStyle.of(context).style.fontSize;
|
|
||||||
Widget content;
|
Widget content;
|
||||||
if (reactionKey.startsWith('mxc://')) {
|
if (reactionKey.startsWith('mxc://')) {
|
||||||
content = Row(
|
content = Row(
|
||||||
|
@ -120,8 +119,9 @@ class _Reaction extends StatelessWidget {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
MxcImage(
|
MxcImage(
|
||||||
uri: Uri.parse(reactionKey),
|
uri: Uri.parse(reactionKey),
|
||||||
width: 9999,
|
width: 20,
|
||||||
height: fontSize,
|
height: 20,
|
||||||
|
animated: false,
|
||||||
),
|
),
|
||||||
if (count > 1) ...[
|
if (count > 1) ...[
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
|
|
Loading…
Reference in a new issue