WIP: Debug double execution of Query GQL Widget

This commit is contained in:
poka 2021-02-04 21:00:37 +01:00
parent 5934744884
commit 6afd5b01ff
5 changed files with 7 additions and 6 deletions

View File

@ -71,7 +71,6 @@ class Gecko extends StatelessWidget {
@override
Widget build(BuildContext context) {
final _httpLink = HttpLink(
// 'http://192.168.1.91:10060/gva',
randomEndpoint,
);

View File

@ -74,9 +74,9 @@ class CesiumPlusProvider with ChangeNotifier {
if (responseJson['hits']['hits'].toString() == '[]') {
return '';
}
final bool avatarExist =
final bool _nameExist =
responseJson['hits']['hits'][0]['_source'].containsKey("title");
if (!avatarExist) {
if (!_nameExist) {
return '';
}
_name = responseJson['hits']['hits'][0]['_source']['title'];

View File

@ -67,6 +67,7 @@ class HistoryProvider with ChangeNotifier {
// Matograine portefeuille: 9p5nHsES6xujFR7pw2yGy4PLKKHgWsMvsDHaHF64Uj25
List parseHistory(txs, _pubkey) {
// print(txs);
var transBC = [];
int i = 0;

View File

@ -101,7 +101,9 @@ class HistoryScreen extends StatelessWidget with ChangeNotifier {
'cursor': null
},
),
builder: (QueryResult result, {refetch, fetchMore}) {
builder: (QueryResult result, {fetchMore, refetch}) {
print("I'M HERE !");
if (result.isLoading && result.data == null) {
return const Center(
child: CircularProgressIndicator(),
@ -130,7 +132,6 @@ class HistoryScreen extends StatelessWidget with ChangeNotifier {
result, opts, _outputPubkey.text);
// Build history list
// _cesiumPlusProvider.cesiumName.text = "NAMEE";
return NotificationListener(
child: Expanded(
child: ListView(

View File

@ -20,7 +20,7 @@ dependencies:
permission_handler:
image_gallery_saver:
image_picker:
graphql_flutter: ^4.0.0-beta.6 #^3.1.0
graphql_flutter: ^4.0.0 #^3.1.0
provider: ^4.3.2+3
truncate: ^2.1.2
sentry_flutter: ^4.0.1