add exports, minor refactoring

This commit is contained in:
Salvatore Giordano
2022-04-29 15:25:35 +02:00
parent eac9d096e8
commit 6048d61862
10 changed files with 20 additions and 47 deletions
@@ -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.
@@ -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.
@@ -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,
@@ -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.