Skip to content
Snippets Groups Projects
Commit e625a9bd authored by poka's avatar poka
Browse files

Continue debug GVA cursor

parent 051a8989
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ class HistoryProvider with ChangeNotifier { ...@@ -16,6 +16,7 @@ class HistoryProvider with ChangeNotifier {
List transBC; List transBC;
bool isFirstBuild = true; bool isFirstBuild = true;
String fetchMoreCursor; String fetchMoreCursor;
Map pageInfo;
Future scan() async { Future scan() async {
await Permission.camera.request(); await Permission.camera.request();
...@@ -130,11 +131,11 @@ class HistoryProvider with ChangeNotifier { ...@@ -130,11 +131,11 @@ class HistoryProvider with ChangeNotifier {
final List<dynamic> blockchainTX = final List<dynamic> blockchainTX =
(result.data['txsHistoryBc']['both']['edges'] as List<dynamic>); (result.data['txsHistoryBc']['both']['edges'] as List<dynamic>);
final Map pageInfo = result.data['txsHistoryBc']['both']['pageInfo']; pageInfo = result.data['txsHistoryBc']['both']['pageInfo'];
fetchMoreCursor = pageInfo['endCursor']; fetchMoreCursor = pageInfo['endCursor'];
print(pageInfo['hasPreviousPage']); print('hasPreviousPage: ' + pageInfo['hasPreviousPage'].toString());
print(pageInfo['hasNextPage']); print('hasNextPage: ' + pageInfo['hasNextPage'].toString());
if (fetchMoreCursor != null) { if (fetchMoreCursor != null) {
opts = FetchMoreOptions( opts = FetchMoreOptions(
......
...@@ -233,6 +233,7 @@ class HistoryScreen extends StatelessWidget with ChangeNotifier { ...@@ -233,6 +233,7 @@ class HistoryScreen extends StatelessWidget with ChangeNotifier {
indent: 0, indent: 0,
endIndent: 0, endIndent: 0,
), ),
// !_historyProvider.pageInfo['hasPreviousPage'] //TODO: fix value of hasPreviousPage
_historyProvider.transBC == null _historyProvider.transBC == null
? Text('Aucune transaction à afficher.') ? Text('Aucune transaction à afficher.')
: loopTransactions(context, result), : loopTransactions(context, result),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment