Skip to content

Conversation

@dhyash-simform
Copy link
Collaborator

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.

Comment on lines 74 to 79
final sortCallback = _chatSorterCallback;
if (sortCallback == null) {
return chatList;
} else {
return chatList..sort(sortCallback);
}
Copy link
Collaborator

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;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems unnecessary.

}

/// Enum for different chat list sorting options
enum ChatListSortBy {
Copy link
Collaborator

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.

};
}

/// Enum for different chat list sorting options
Copy link
Collaborator

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.

@dhyash-simform dhyash-simform force-pushed the feat/chat_list_show_pinned_chats_first branch 3 times, most recently from 4eddfb9 to 9a4c7f5 Compare August 1, 2025 10:28
@dhyash-simform dhyash-simform force-pushed the feat/chat_list_show_pinned_chats_first branch from 9a4c7f5 to 9b7ba18 Compare August 13, 2025 09:48
@dhyash-simform dhyash-simform force-pushed the feat/chat_list_show_pinned_chats_first branch from 9b7ba18 to 7650f01 Compare August 20, 2025 08:16
@dhyash-simform dhyash-simform changed the base branch from main to feat/chat_list_ui_base August 20, 2025 08:16
@aditya-css aditya-css merged commit eda1cd6 into feat/chat_list_ui_base Aug 20, 2025
2 checks passed
@aditya-css aditya-css deleted the feat/chat_list_show_pinned_chats_first branch August 20, 2025 09:41
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.

4 participants