chore(ui): remove generics from grid views, update docs
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ typedef StreamChannelGridViewIndexedWidgetBuilder
|
|||||||
/// See also:
|
/// See also:
|
||||||
/// * [StreamChannelGridTile]
|
/// * [StreamChannelGridTile]
|
||||||
/// * [StreamChannelListController]
|
/// * [StreamChannelListController]
|
||||||
class StreamChannelGridView<K, V> extends StatelessWidget {
|
class StreamChannelGridView extends StatelessWidget {
|
||||||
/// Creates a new instance of [StreamChannelGridView].
|
/// Creates a new instance of [StreamChannelGridView].
|
||||||
const StreamChannelGridView({
|
const StreamChannelGridView({
|
||||||
Key? key,
|
Key? key,
|
||||||
@@ -83,7 +83,7 @@ class StreamChannelGridView<K, V> extends StatelessWidget {
|
|||||||
|
|
||||||
/// A builder that is called to build items in the [PagedValueGridView].
|
/// 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;
|
final StreamChannelGridViewIndexedWidgetBuilder? itemBuilder;
|
||||||
|
|
||||||
/// A builder that is called to build the empty state of the grid.
|
/// A builder that is called to build the empty state of the grid.
|
||||||
|
|||||||
-4
@@ -83,10 +83,6 @@ class StreamChannelListView extends StatelessWidget {
|
|||||||
final StreamChannelListController controller;
|
final StreamChannelListController controller;
|
||||||
|
|
||||||
/// A builder that is called to build items in the [ListView].
|
/// 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;
|
final StreamChannelListViewIndexedWidgetBuilder? itemBuilder;
|
||||||
|
|
||||||
/// A builder that is called to build the list separator.
|
/// A builder that is called to build the list separator.
|
||||||
|
|||||||
+2
-2
@@ -35,7 +35,7 @@ typedef StreamMessageSearchGridViewIndexedWidgetBuilder
|
|||||||
/// See also:
|
/// See also:
|
||||||
/// * [StreamUserListTile]
|
/// * [StreamUserListTile]
|
||||||
/// * [StreamUserListController]
|
/// * [StreamUserListController]
|
||||||
class StreamMessageSearchGridView<K, V> extends StatelessWidget {
|
class StreamMessageSearchGridView extends StatelessWidget {
|
||||||
/// Creates a new instance of [StreamMessageSearchGridView].
|
/// Creates a new instance of [StreamMessageSearchGridView].
|
||||||
const StreamMessageSearchGridView({
|
const StreamMessageSearchGridView({
|
||||||
Key? key,
|
Key? key,
|
||||||
@@ -75,7 +75,7 @@ class StreamMessageSearchGridView<K, V> extends StatelessWidget {
|
|||||||
|
|
||||||
/// A builder that is called to build items in the [PagedValueGridView].
|
/// 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;
|
final StreamMessageSearchGridViewIndexedWidgetBuilder itemBuilder;
|
||||||
|
|
||||||
/// A builder that is called to build the empty state of the grid.
|
/// A builder that is called to build the empty state of the grid.
|
||||||
|
|||||||
-4
@@ -80,10 +80,6 @@ class StreamMessageSearchListView extends StatelessWidget {
|
|||||||
final StreamMessageSearchListController controller;
|
final StreamMessageSearchListController controller;
|
||||||
|
|
||||||
/// A builder that is called to build items in the [ListView].
|
/// 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;
|
final StreamMessageSearchListViewIndexedWidgetBuilder? itemBuilder;
|
||||||
|
|
||||||
/// A builder that is called to build the list separator.
|
/// A builder that is called to build the list separator.
|
||||||
|
|||||||
+1
-3
@@ -37,7 +37,7 @@ typedef StreamUserGridViewIndexedWidgetBuilder
|
|||||||
/// See also:
|
/// See also:
|
||||||
/// * [StreamUserListTile]
|
/// * [StreamUserListTile]
|
||||||
/// * [StreamUserListController]
|
/// * [StreamUserListController]
|
||||||
class StreamUserGridView<K, V> extends StatelessWidget {
|
class StreamUserGridView extends StatelessWidget {
|
||||||
/// Creates a new instance of [StreamUserGridView].
|
/// Creates a new instance of [StreamUserGridView].
|
||||||
const StreamUserGridView({
|
const StreamUserGridView({
|
||||||
Key? key,
|
Key? key,
|
||||||
@@ -78,8 +78,6 @@ class StreamUserGridView<K, V> extends StatelessWidget {
|
|||||||
final SliverGridDelegate gridDelegate;
|
final SliverGridDelegate gridDelegate;
|
||||||
|
|
||||||
/// A builder that is called to build items in the [PagedValueGridView].
|
/// 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;
|
final StreamUserGridViewIndexedWidgetBuilder? itemBuilder;
|
||||||
|
|
||||||
/// A builder that is called to build the empty state of the grid.
|
/// A builder that is called to build the empty state of the grid.
|
||||||
|
|||||||
-4
@@ -78,10 +78,6 @@ class StreamUserListView extends StatelessWidget {
|
|||||||
final StreamUserListController controller;
|
final StreamUserListController controller;
|
||||||
|
|
||||||
/// A builder that is called to build items in the [ListView].
|
/// 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;
|
final StreamUserListViewIndexedWidgetBuilder? itemBuilder;
|
||||||
|
|
||||||
/// A builder that is called to build the list separator.
|
/// A builder that is called to build the list separator.
|
||||||
|
|||||||
Reference in New Issue
Block a user