feat(ui, core): Add default empty filter in UserListView.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-09-15 16:02:05 +05:30
committed by xsahil03x
parent 59aad47789
commit ea3d10646e
2 changed files with 4 additions and 2 deletions
@@ -48,7 +48,7 @@ class UserListView extends StatefulWidget {
/// Instantiate a new UserListView
const UserListView({
Key? key,
this.filter,
this.filter = const Filter.empty(),
this.sort,
this.presence,
this.pagination = const PaginationParams(limit: 30),
@@ -76,6 +76,7 @@ class UserListView extends StatefulWidget {
/// The query filters to use.
/// You can query on any of the custom fields you've defined on the [Channel].
/// You can also filter other built-in channel fields.
// TODO: Make it non-nullable in a future breaking release
final Filter? filter;
/// The sorting used for the channels matching the filters.
@@ -63,7 +63,7 @@ class UserListCore extends StatefulWidget {
required this.loadingBuilder,
required this.listBuilder,
Key? key,
this.filter,
this.filter = const Filter.empty(),
this.sort,
this.presence,
this.pagination = const PaginationParams(limit: 30),
@@ -91,6 +91,7 @@ class UserListCore extends StatefulWidget {
/// The query filters to use.
/// You can query on any of the custom fields you've defined on the [Channel].
/// You can also filter other built-in channel fields.
// TODO: Make it non-nullable in a future breaking release
final Filter? filter;
/// The sorting used for the channels matching the filters.