feat(infinite_query): add isLoadingNextPage & remove isLoadingPage

This commit is contained in:
Kingkor Roy Tirtho
2023-10-06 11:15:59 +06:00
parent 9581e276b9
commit ab1479c0eb
2 changed files with 40 additions and 29 deletions
@@ -37,7 +37,7 @@ class _InfiniteQueryTabState extends State<InfiniteQueryTab> {
return QueryTile(
title: query.key,
isLoading: query.isLoadingPage,
isLoading: query.isLoadingNextPage,
hasError: query.hasErrors,
onTap: () {
setState(() {
@@ -63,7 +63,7 @@ class _InfiniteQueryTabState extends State<InfiniteQueryTab> {
_selectedQueryKey ?? '',
builder: (context, query) {
if (query == null) {
return SizedBox.shrink();
return const SizedBox.shrink();
}
return ExplorerView(
@@ -78,7 +78,7 @@ class _InfiniteQueryTabState extends State<InfiniteQueryTab> {
"updatedAt": page.updatedAt.toString(),
};
}).toList(),
'isLoadingPage': query.isLoadingPage,
'isLoadingNextPage': query.isLoadingNextPage,
'isRefreshingPage': query.isRefreshingPage,
'isInactive': query.isInactive,
'refreshConfig': query.refreshConfig.toJson(),