From 5a0e237a1f826e65803a53c3cc5b4caefbf6f064 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 18 May 2020 10:57:06 +0200 Subject: [PATCH] remove dead code --- lib/src/message_widget.dart | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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);