remove dead code
This commit is contained in:
@@ -255,7 +255,7 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
child: Padding(
|
child: Padding(
|
||||||
padding: widget.showReactions
|
padding: widget.showReactions
|
||||||
? EdgeInsets.only(
|
? EdgeInsets.only(
|
||||||
top: _getReactionsTopPadding(),
|
top: _reactionPadding,
|
||||||
)
|
)
|
||||||
: EdgeInsets.zero,
|
: EdgeInsets.zero,
|
||||||
child: PortalEntry(
|
child: PortalEntry(
|
||||||
@@ -309,16 +309,6 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
double _getReactionsTopPadding() {
|
|
||||||
return _reactionPadding;
|
|
||||||
return 36.0 *
|
|
||||||
((widget.message.reactionCounts.values
|
|
||||||
.where((element) => element > 0)
|
|
||||||
.length ~/
|
|
||||||
5) +
|
|
||||||
1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void didUpdateWidget(MessageWidget oldWidget) {
|
void didUpdateWidget(MessageWidget oldWidget) {
|
||||||
super.didUpdateWidget(oldWidget);
|
super.didUpdateWidget(oldWidget);
|
||||||
|
|||||||
Reference in New Issue
Block a user