-
Notifications
You must be signed in to change notification settings - Fork 202
feat:✨Added a support for showing message time in message bubble. Rem… #123
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
base: main
Are you sure you want to change the base?
Conversation
Drjsingh
left a comment
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
| 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.
|
|
||
| @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
| 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
|
When can we get these changes in release? |
…enableSwipeToSeeTime(bool) & added showMessageTimeIn(Enum) from FeatureActiveConfig class.(#115)
Description
Checklist
fix:,feat:,docs:etc).docsand added dartdoc comments with///.examplesordocs.Breaking Change?
Related Issues
Closes #115