chore(ui): remove generics from grid views, update docs

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-04-29 18:14:01 +05:30
committed by xsahil03x
parent 264253feae
commit 51a3711613
6 changed files with 5 additions and 19 deletions
@@ -41,7 +41,7 @@ typedef StreamChannelGridViewIndexedWidgetBuilder
/// See also:
/// * [StreamChannelGridTile]
/// * [StreamChannelListController]
class StreamChannelGridView<K, V> extends StatelessWidget {
class StreamChannelGridView extends StatelessWidget {
/// Creates a new instance of [StreamChannelGridView].
const StreamChannelGridView({
Key? key,
@@ -83,7 +83,7 @@ class StreamChannelGridView<K, V> 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.
@@ -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.
@@ -35,7 +35,7 @@ typedef StreamMessageSearchGridViewIndexedWidgetBuilder
/// See also:
/// * [StreamUserListTile]
/// * [StreamUserListController]
class StreamMessageSearchGridView<K, V> extends StatelessWidget {
class StreamMessageSearchGridView extends StatelessWidget {
/// Creates a new instance of [StreamMessageSearchGridView].
const StreamMessageSearchGridView({
Key? key,
@@ -75,7 +75,7 @@ class StreamMessageSearchGridView<K, V> 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.
@@ -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.
@@ -37,7 +37,7 @@ typedef StreamUserGridViewIndexedWidgetBuilder
/// See also:
/// * [StreamUserListTile]
/// * [StreamUserListController]
class StreamUserGridView<K, V> extends StatelessWidget {
class StreamUserGridView extends StatelessWidget {
/// Creates a new instance of [StreamUserGridView].
const StreamUserGridView({
Key? key,
@@ -78,8 +78,6 @@ class StreamUserGridView<K, V> 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.
@@ -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.