fix(query): isLoading & isRefreshing not working as expected

This commit is contained in:
Kingkor Roy Tirtho
2023-10-06 10:36:55 +06:00
parent b512a5da06
commit 9581e276b9
2 changed files with 34 additions and 12 deletions
@@ -29,13 +29,15 @@ class QueryPage extends StatelessWidget {
'hello',
() {
return Future.delayed(
const Duration(seconds: 6), () => 'Hello World! $value');
const Duration(seconds: 6),
() => 'Hello World! $value',
);
},
initial: 'Hello',
jsonConfig: JsonConfig(
fromJson: (json) => json['data'],
toJson: (data) => {'data': data},
),
// jsonConfig: JsonConfig(
// fromJson: (json) => json['data'],
// toJson: (data) => {'data': data},
// ),
onData: (value) {
debugPrint('onData: $value');
},