diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index 942bec1c..83705894 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -255,7 +255,7 @@ class _MessageWidgetState extends State { child: Padding( padding: widget.showReactions ? EdgeInsets.only( - top: _getReactionsTopPadding(), + top: _reactionPadding, ) : EdgeInsets.zero, child: PortalEntry( @@ -309,16 +309,6 @@ class _MessageWidgetState extends State { ); } - double _getReactionsTopPadding() { - return _reactionPadding; - return 36.0 * - ((widget.message.reactionCounts.values - .where((element) => element > 0) - .length ~/ - 5) + - 1); - } - @override void didUpdateWidget(MessageWidget oldWidget) { super.didUpdateWidget(oldWidget);