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:
parent
e246816187
commit
fdf6659be4
1 changed files with 34 additions and 32 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue