From 355974e3be1ebd7c2f3468af7c2669a21491fa3b Mon Sep 17 00:00:00 2001 From: Viet Ho Date: Thu, 29 Jan 2026 08:41:46 -0600 Subject: [PATCH 1/2] added headerSlivers for ChatList --- lib/src/widgets/chat_list/chat_list.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/widgets/chat_list/chat_list.dart b/lib/src/widgets/chat_list/chat_list.dart index a9b3b59d..9e546675 100644 --- a/lib/src/widgets/chat_list/chat_list.dart +++ b/lib/src/widgets/chat_list/chat_list.dart @@ -56,6 +56,7 @@ class ChatList extends StatefulWidget { this.chatBuilder, this.appbar, this.loadMoreChats, + this.headerSlivers, this.header, this.footer, this.isLastPage, @@ -83,6 +84,9 @@ class ChatList extends StatefulWidget { /// If set to `true`, pagination will not trigger loading more chats. final ValueGetter? isLastPage; + /// List of sliver headers to be displayed at the top of the chat list. + final List? headerSlivers; + /// Header widget to be displayed at the top of the chat list. final Widget? header; @@ -179,6 +183,7 @@ class _ChatListState extends State { ), ), ), + ...?widget.headerSlivers, if (widget.header case final header?) SliverToBoxAdapter(child: header), StreamBuilder>( stream: _controller.chatListStream, From 17dd494d36a1ea51417bfc10ab03c373d482db37 Mon Sep 17 00:00:00 2001 From: Viet Ho Date: Thu, 29 Jan 2026 08:49:52 -0600 Subject: [PATCH 2/2] updated CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e22beb2..e0d3a559 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Rendering issue in attached image preview when sending message on web. * **Feat**: [420](https://github.com/SimformSolutionsPvtLtd/chatview/pull/420) Added support for `playerMode` in `VoiceMessageConfiguration` with `single` and `multi`. +* **Feat**: [429](https://github.com/SimformSolutionsPvtLtd/chatview/pull/429) Added optional `headerSlivers` + to `ChatList` for better customization. ## [3.0.0]