feat(ui, core): Add default empty filter in UserListView.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -48,7 +48,7 @@ class UserListView extends StatefulWidget {
|
|||||||
/// Instantiate a new UserListView
|
/// Instantiate a new UserListView
|
||||||
const UserListView({
|
const UserListView({
|
||||||
Key? key,
|
Key? key,
|
||||||
this.filter,
|
this.filter = const Filter.empty(),
|
||||||
this.sort,
|
this.sort,
|
||||||
this.presence,
|
this.presence,
|
||||||
this.pagination = const PaginationParams(limit: 30),
|
this.pagination = const PaginationParams(limit: 30),
|
||||||
@@ -76,6 +76,7 @@ class UserListView extends StatefulWidget {
|
|||||||
/// The query filters to use.
|
/// The query filters to use.
|
||||||
/// You can query on any of the custom fields you've defined on the [Channel].
|
/// You can query on any of the custom fields you've defined on the [Channel].
|
||||||
/// You can also filter other built-in channel fields.
|
/// You can also filter other built-in channel fields.
|
||||||
|
// TODO: Make it non-nullable in a future breaking release
|
||||||
final Filter? filter;
|
final Filter? filter;
|
||||||
|
|
||||||
/// The sorting used for the channels matching the filters.
|
/// The sorting used for the channels matching the filters.
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class UserListCore extends StatefulWidget {
|
|||||||
required this.loadingBuilder,
|
required this.loadingBuilder,
|
||||||
required this.listBuilder,
|
required this.listBuilder,
|
||||||
Key? key,
|
Key? key,
|
||||||
this.filter,
|
this.filter = const Filter.empty(),
|
||||||
this.sort,
|
this.sort,
|
||||||
this.presence,
|
this.presence,
|
||||||
this.pagination = const PaginationParams(limit: 30),
|
this.pagination = const PaginationParams(limit: 30),
|
||||||
@@ -91,6 +91,7 @@ class UserListCore extends StatefulWidget {
|
|||||||
/// The query filters to use.
|
/// The query filters to use.
|
||||||
/// You can query on any of the custom fields you've defined on the [Channel].
|
/// You can query on any of the custom fields you've defined on the [Channel].
|
||||||
/// You can also filter other built-in channel fields.
|
/// You can also filter other built-in channel fields.
|
||||||
|
// TODO: Make it non-nullable in a future breaking release
|
||||||
final Filter? filter;
|
final Filter? filter;
|
||||||
|
|
||||||
/// The sorting used for the channels matching the filters.
|
/// The sorting used for the channels matching the filters.
|
||||||
|
|||||||
Reference in New Issue
Block a user