Skip to content

Commit

Permalink
chore(ui): remove generics from grid views, update docs
Browse files Browse the repository at this point in the history
Signed-off-by: xsahil03x <xdsahil@gmail.com>
  • Loading branch information
xsahil03x committed Apr 29, 2022
1 parent 264253f commit 51a3711
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 51a3711

Please sign in to comment.