-
Notifications
You must be signed in to change notification settings - Fork 144
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
lib/src/values/enumaration.dart
Outdated
@@ -52,3 +52,22 @@ extension ChatViewStateExtension on ChatViewState { | |||
|
|||
bool get noMessages => this == ChatViewState.noData; | |||
} | |||
|
|||
enum ShowMessageCreateTime { |
There was a problem hiding this comment.
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) ?? |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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)! |
There was a problem hiding this comment.
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
lib/src/utils/package_strings.dart
Outdated
@@ -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 =' '; |
There was a problem hiding this comment.
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)! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^
9f9abde
to
aa97eba
Compare
@jaiminrana05 When we will get these changes in release |
aa97eba
to
d096245
Compare
…oved enableSwipeToSeeTime(bool) & added messageTimePositionType(Enum) to FeatureActiveConfig class.(#115)
d096245
to
c3a917e
Compare
…enableSwipeToSeeTime(bool) & added showMessageTimeIn(Enum) from FeatureActiveConfig class.(#115)
Description
Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?
Related Issues
Closes #115