Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:✨Added a support for showing message time in message bubble. Rem… #123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaiminrana05
Copy link
Contributor

…enableSwipeToSeeTime(bool) & added showMessageTimeIn(Enum) from FeatureActiveConfig class.(#115)

Description

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Closes #115

Copy link

@Drjsingh Drjsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please release these changes

@@ -52,3 +52,22 @@ extension ChatViewStateExtension on ChatViewState {

bool get noMessages => this == ChatViewState.noData;
}

enum ShowMessageCreateTime {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming convention.

),
),
const SizedBox(width: 4),
messageDateTimeBuilder?.call(messageTime) ??
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use this as parent widget.

if (!showMessageTimeIn.isOnRightSwipe &&
!showMessageTimeIn.isDisable)
Positioned(
right: message.reaction.reactions.isNotEmpty ? 16 : 18,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this static value might break something, please assure all the possible scenarios.

@@ -67,6 +73,9 @@ class ImageMessageView extends StatelessWidget {

@override
Widget build(BuildContext context) {
final showMessageTimeIn = ChatViewInheritedWidget.of(context)!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not use force unwrap here

@@ -34,4 +34,7 @@ class PackageStrings {
static const String photo = "Photo";
static const String send = "Send";
static const String you = "You";
static const String emptyString = '';
static const String messageTimeSpacing =' ';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not use static spacing like this.

color: Colors.white,
fontSize: 16,
),
final showMessageTimeIn = ChatViewInheritedWidget.of(context)!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^

@jaiminrana05 jaiminrana05 force-pushed the fix/issue_115_show_message_time_in_bubble branch 3 times, most recently from 9f9abde to aa97eba Compare October 5, 2023 16:15
@Drjsingh
Copy link

@jaiminrana05 When we will get these changes in release

@apurva010 apurva010 force-pushed the fix/issue_115_show_message_time_in_bubble branch from aa97eba to d096245 Compare May 16, 2024 07:09
…oved enableSwipeToSeeTime(bool) & added messageTimePositionType(Enum) to FeatureActiveConfig class.(#115)
@apurva010 apurva010 force-pushed the fix/issue_115_show_message_time_in_bubble branch from d096245 to c3a917e Compare May 16, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to display sent/received message time below the chat bubble
3 participants