fix: get rid of small space between emojis after animating (#3564)

* fix: get rid of small space between emojis after animating

* formatting

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
avashilling 2025-07-25 11:11:47 -04:00 committed by GitHub
parent e246816187
commit fdf6659be4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,6 @@ class _PangeaMessageReactionsState extends State<PangeaMessageReactions> {
clipBehavior: Clip.none,
child: Wrap(
crossAxisAlignment: WrapCrossAlignment.center,
spacing: 4.0,
runSpacing: 4.0,
alignment: ownMessage ? WrapAlignment.end : WrapAlignment.start,
children: [
@ -427,38 +426,41 @@ class _ReactionState extends State<_Reaction> with TickerProviderStateMixin {
scale: scale,
alignment: Alignment.center,
child: scale > 0.01
? InkWell(
onTap: () async {
if (_isBusy || isBouncing || isGrowing) {
return;
}
_isBusy = true;
try {
await _animateAndReact();
} finally {
if (mounted) setState(() => _isBusy = false);
}
},
onLongPress: () => widget.onLongPress != null
? widget.onLongPress!()
: null,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 2,
),
child: Container(
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 2,
),
? Padding(
padding: const EdgeInsets.only(left: 2, right: 2),
child: InkWell(
onTap: () async {
if (_isBusy || isBouncing || isGrowing) {
return;
}
_isBusy = true;
try {
await _animateAndReact();
} finally {
if (mounted) setState(() => _isBusy = false);
}
},
onLongPress: () => widget.onLongPress != null
? widget.onLongPress!()
: null,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 2,
),
child: Container(
decoration: BoxDecoration(
color: color,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 2,
),
),
padding: PlatformInfos.isIOS
? const EdgeInsets.fromLTRB(5.5, 1, 3, 2.5)
: const EdgeInsets.symmetric(
horizontal: 4,
vertical: 2,
),
child: content,
),
padding: PlatformInfos.isIOS
? const EdgeInsets.fromLTRB(5.5, 1, 3, 2.5)
: const EdgeInsets.symmetric(
horizontal: 4,
vertical: 2,
),
child: content,
),
)
: const SizedBox.shrink(),