fix: visible footnote spacing and visibility.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-05-10 17:57:57 +05:30
committed by xsahil03x
parent b607fd9733
commit 89b9e957b9
5 changed files with 23 additions and 22 deletions
@@ -147,11 +147,15 @@ class BottomRow extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (isDeleted) {
return deletedBottomRowBuilder?.call(
context,
message,
) ??
const StreamVisibleFootnote();
final deletedBottomRowBuilder = this.deletedBottomRowBuilder;
if (deletedBottomRowBuilder != null) {
return deletedBottomRowBuilder(context, message);
}
// Only show visible footnote for ownUser.
final currentUser = streamChat.currentUser;
final isOwnUser = message.user?.id == currentUser?.id;
if (isOwnUser) return const StreamVisibleFootnote();
}
final children = <WidgetSpan>[];
@@ -794,8 +794,7 @@ class _StreamMessageWidgetState extends State<StreamMessageWidget>
showUsername ||
showTimeStamp ||
showInChannel ||
showSendingIndicator ||
isDeleted;
showSendingIndicator;
/// {@template isPinned}
/// Whether [StreamMessageWidget.message] is pinned or not.
@@ -65,7 +65,6 @@ class _QuotedMessageState extends State<QuotedMessage> {
top: 8,
bottom: widget.hasNonUrlAttachments ? 8 : 0,
),
composing: false,
);
}
}