diff --git a/lib/home.dart b/lib/home.dart index 791c975..f219923 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -180,6 +180,8 @@ class _HistoryListScreenState extends State { if (_scrollController.position.pixels == _scrollController.position.maxScrollExtent) { if (!result.loading) { + print('B'); + print(opts); fetchMore(opts); } } diff --git a/lib/query.dart b/lib/query.dart index 7778686..e815d66 100644 --- a/lib/query.dart +++ b/lib/query.dart @@ -1,8 +1,8 @@ const String getMyRepositories = r''' - query ($pubkey: String!, $number: Int!) { + query ($pubkey: String!, $number: Int!, $cursor: String) { txsHistoryBc( pubkeyOrScript: $pubkey - pagination: { pageSize: $number, ord: DESC } + pagination: { pageSize: $number, ord: DESC, cursor: $cursor } ) { both { pageInfo {