add exports, minor refactoring
This commit is contained in:
-4
@@ -89,13 +89,9 @@ class StreamChannelListView extends StatelessWidget {
|
||||
final PagedValueScrollViewIndexedWidgetBuilder<Channel> separatorBuilder;
|
||||
|
||||
/// A builder that is called to build the empty state of the list.
|
||||
///
|
||||
/// If not provided, [StreamChannelListEmptyWidget] will be used.
|
||||
final WidgetBuilder? emptyBuilder;
|
||||
|
||||
/// A builder that is called to build the loading state of the list.
|
||||
///
|
||||
/// If not provided, [StreamChannelListLoadingTile] will be used.
|
||||
final WidgetBuilder? loadingBuilder;
|
||||
|
||||
/// A builder that is called to build the error state of the list.
|
||||
|
||||
-6
@@ -87,18 +87,12 @@ class StreamMessageSearchListView extends StatelessWidget {
|
||||
separatorBuilder;
|
||||
|
||||
/// A builder that is called to build the empty state of the list.
|
||||
///
|
||||
/// If not provided, [StreamMessageSearchListEmptyWidget] will be used.
|
||||
final WidgetBuilder? emptyBuilder;
|
||||
|
||||
/// A builder that is called to build the loading state of the list.
|
||||
///
|
||||
/// If not provided, [StreamMessageSearchListLoadingTile] will be used.
|
||||
final WidgetBuilder? loadingBuilder;
|
||||
|
||||
/// A builder that is called to build the error state of the list.
|
||||
///
|
||||
/// If not provided, [StreamMessageSearchListErrorWidget] will be used.
|
||||
final Widget Function(BuildContext, StreamChatError)? errorBuilder;
|
||||
|
||||
/// Called when the user taps this list tile.
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@ class StreamUserGridTile extends StatelessWidget {
|
||||
child: Text(
|
||||
user.name,
|
||||
textAlign: TextAlign.center,
|
||||
maxLines: 2,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
-6
@@ -84,18 +84,12 @@ class StreamUserListView extends StatelessWidget {
|
||||
final PagedValueScrollViewIndexedWidgetBuilder<User> separatorBuilder;
|
||||
|
||||
/// A builder that is called to build the empty state of the list.
|
||||
///
|
||||
/// If not provided, [StreamUserListEmptyWidget] will be used.
|
||||
final WidgetBuilder? emptyBuilder;
|
||||
|
||||
/// A builder that is called to build the loading state of the list.
|
||||
///
|
||||
/// If not provided, [StreamUserListLoadingTile] will be used.
|
||||
final WidgetBuilder? loadingBuilder;
|
||||
|
||||
/// A builder that is called to build the error state of the list.
|
||||
///
|
||||
/// If not provided, [StreamUserListErrorWidget] will be used.
|
||||
final Widget Function(BuildContext, StreamChatError)? errorBuilder;
|
||||
|
||||
/// Called when the user taps this list tile.
|
||||
|
||||
Reference in New Issue
Block a user