From 51a3711613179e6f6e312b1a39a31bcefcedf821 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Fri, 29 Apr 2022 18:14:01 +0530 Subject: [PATCH] chore(ui): remove generics from grid views, update docs Signed-off-by: xsahil03x --- .../channel_scroll_view/stream_channel_grid_view.dart | 4 ++-- .../channel_scroll_view/stream_channel_list_view.dart | 4 ---- .../stream_message_search_grid_view.dart | 4 ++-- .../stream_message_search_list_view.dart | 4 ---- .../scroll_view/user_scroll_view/stream_user_grid_view.dart | 4 +--- .../scroll_view/user_scroll_view/stream_user_list_view.dart | 4 ---- 6 files changed, 5 insertions(+), 19 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_grid_view.dart b/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_grid_view.dart index af5e03cea..27b71979d 100644 --- a/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_grid_view.dart +++ b/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_grid_view.dart @@ -41,7 +41,7 @@ typedef StreamChannelGridViewIndexedWidgetBuilder /// See also: /// * [StreamChannelGridTile] /// * [StreamChannelListController] -class StreamChannelGridView extends StatelessWidget { +class StreamChannelGridView extends StatelessWidget { /// Creates a new instance of [StreamChannelGridView]. const StreamChannelGridView({ Key? key, @@ -83,7 +83,7 @@ class StreamChannelGridView extends StatelessWidget { /// A builder that is called to build items in the [PagedValueGridView]. /// - /// The `value` parameter is the [V] at this position in the grid. + /// The `value` parameter is the [Channel] at this position in the grid. final StreamChannelGridViewIndexedWidgetBuilder? itemBuilder; /// A builder that is called to build the empty state of the grid. diff --git a/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_list_view.dart b/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_list_view.dart index 0feb84c6b..237536446 100644 --- a/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_list_view.dart +++ b/packages/stream_chat_flutter/lib/src/v4/scroll_view/channel_scroll_view/stream_channel_list_view.dart @@ -83,10 +83,6 @@ class StreamChannelListView extends StatelessWidget { final StreamChannelListController controller; /// A builder that is called to build items in the [ListView]. - /// - /// The `channel` parameter is the [Channel] at this position in the list - /// and the `defaultWidget` is the default widget used - /// i.e: [StreamChannelListTile]. final StreamChannelListViewIndexedWidgetBuilder? itemBuilder; /// A builder that is called to build the list separator. diff --git a/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_grid_view.dart b/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_grid_view.dart index 502b6f54f..142d4a7ad 100644 --- a/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_grid_view.dart +++ b/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_grid_view.dart @@ -35,7 +35,7 @@ typedef StreamMessageSearchGridViewIndexedWidgetBuilder /// See also: /// * [StreamUserListTile] /// * [StreamUserListController] -class StreamMessageSearchGridView extends StatelessWidget { +class StreamMessageSearchGridView extends StatelessWidget { /// Creates a new instance of [StreamMessageSearchGridView]. const StreamMessageSearchGridView({ Key? key, @@ -75,7 +75,7 @@ class StreamMessageSearchGridView extends StatelessWidget { /// A builder that is called to build items in the [PagedValueGridView]. /// - /// The `value` parameter is the [V] at this position in the grid. + /// The `value` parameter is the [GetMessageBuilder] at this position in the grid. final StreamMessageSearchGridViewIndexedWidgetBuilder itemBuilder; /// A builder that is called to build the empty state of the grid. diff --git a/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_list_view.dart b/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_list_view.dart index e6b526d77..3b23694b2 100644 --- a/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_list_view.dart +++ b/packages/stream_chat_flutter/lib/src/v4/scroll_view/message_search_scroll_view/stream_message_search_list_view.dart @@ -80,10 +80,6 @@ class StreamMessageSearchListView extends StatelessWidget { final StreamMessageSearchListController controller; /// A builder that is called to build items in the [ListView]. - /// - /// The `messageResponse` parameter is the [GetMessageResponse] at this - /// position in the list and the `defaultWidget` is the default widget used - /// i.e: [StreamMessageSearchListTile]. final StreamMessageSearchListViewIndexedWidgetBuilder? itemBuilder; /// A builder that is called to build the list separator. diff --git a/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_grid_view.dart b/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_grid_view.dart index 24765a6aa..3b9009711 100644 --- a/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_grid_view.dart +++ b/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_grid_view.dart @@ -37,7 +37,7 @@ typedef StreamUserGridViewIndexedWidgetBuilder /// See also: /// * [StreamUserListTile] /// * [StreamUserListController] -class StreamUserGridView extends StatelessWidget { +class StreamUserGridView extends StatelessWidget { /// Creates a new instance of [StreamUserGridView]. const StreamUserGridView({ Key? key, @@ -78,8 +78,6 @@ class StreamUserGridView extends StatelessWidget { final SliverGridDelegate gridDelegate; /// A builder that is called to build items in the [PagedValueGridView]. - /// - /// The `value` parameter is the [V] at this position in the grid. final StreamUserGridViewIndexedWidgetBuilder? itemBuilder; /// A builder that is called to build the empty state of the grid. diff --git a/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_list_view.dart b/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_list_view.dart index 1bca6e84e..929158110 100644 --- a/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_list_view.dart +++ b/packages/stream_chat_flutter/lib/src/v4/scroll_view/user_scroll_view/stream_user_list_view.dart @@ -78,10 +78,6 @@ class StreamUserListView extends StatelessWidget { final StreamUserListController controller; /// A builder that is called to build items in the [ListView]. - /// - /// The `user` parameter is the [User] at this position in the list - /// and the `defaultWidget` is the default widget used - /// i.e: [StreamUserListTile]. final StreamUserListViewIndexedWidgetBuilder? itemBuilder; /// A builder that is called to build the list separator.