-
Notifications
You must be signed in to change notification settings - Fork 208
feat: ✨ Show Pinned Chat First in ChatViewList #367
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: ✨ Show Pinned Chat First in ChatViewList #367
Conversation
| final sortCallback = _chatSorterCallback; | ||
| if (sortCallback == null) { | ||
| return chatList; | ||
| } else { | ||
| return chatList..sort(sortCallback); | ||
| } |
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.
You can leverage if case here.
| /// Provides scroll controller for chat list. | ||
| ScrollController scrollController; | ||
|
|
||
| ChatSorter? _chatSorterCallback; |
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 seems unnecessary.
lib/src/values/enumeration.dart
Outdated
| } | ||
|
|
||
| /// Enum for different chat list sorting options | ||
| enum ChatListSortBy { |
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 stick to ChatView prefix.
lib/src/values/enumeration.dart
Outdated
| }; | ||
| } | ||
|
|
||
| /// Enum for different chat list sorting options |
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 mention that this is for internal use only.
4eddfb9 to
9a4c7f5
Compare
9a4c7f5 to
9b7ba18
Compare
9b7ba18 to
7650f01
Compare
Description
Checklist
fix:,feat:,docs:etc).docsand added dartdoc comments with///.examplesordocs.Breaking Change?