forked from axiom-team/gecko
Upgrade to graphql 4.0-beta5
This commit is contained in:
parent
e4558bf8ee
commit
68170e1829
|
@ -100,17 +100,17 @@ class _HistoryListScreenState extends State<HistoryListScreen> {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Query(
|
Query(
|
||||||
options: QueryOptions(
|
options: QueryOptions(
|
||||||
documentNode: gql(getHistory),
|
document: gql(getHistory),
|
||||||
variables: <String, dynamic>{
|
variables: <String, dynamic>{
|
||||||
'pubkey': pubkey, // pubkey,
|
'pubkey': pubkey, // pubkey,
|
||||||
'number': nRepositories,
|
'number': nRepositories,
|
||||||
// set cursor to null so as to start at the beginning
|
// set cursor to null so as to start at the beginning
|
||||||
// 'cursor': 0
|
// 'cursor': null
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
builder: (QueryResult result,
|
builder: (QueryResult result,
|
||||||
{refetch, FetchMore fetchMore}) {
|
{refetch, FetchMore fetchMore}) {
|
||||||
if (result.loading && result.data == null) {
|
if (result.isLoading && result.data == null) {
|
||||||
return const Center(
|
return const Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator(),
|
||||||
);
|
);
|
||||||
|
@ -167,7 +167,7 @@ class _HistoryListScreenState extends State<HistoryListScreen> {
|
||||||
..addListener(() {
|
..addListener(() {
|
||||||
if (_scrollController.position.pixels ==
|
if (_scrollController.position.pixels ==
|
||||||
_scrollController.position.maxScrollExtent) {
|
_scrollController.position.maxScrollExtent) {
|
||||||
if (!result.loading) {
|
if (!result.isLoading) {
|
||||||
print('DEBUG NULL scrollController: ' +
|
print('DEBUG NULL scrollController: ' +
|
||||||
fetchMoreCursor);
|
fetchMoreCursor);
|
||||||
fetchMore(opts);
|
fetchMore(opts);
|
||||||
|
@ -245,7 +245,7 @@ class _HistoryListScreenState extends State<HistoryListScreen> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (result.loading)
|
if (result.isLoading)
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
@ -310,12 +310,11 @@ class _HistoryListScreenState extends State<HistoryListScreen> {
|
||||||
|
|
||||||
// var tata = _scrollController;
|
// var tata = _scrollController;
|
||||||
|
|
||||||
// setState(() {
|
setState(() {
|
||||||
// print('setPubkey: ' + pubkey);
|
print('setPubkey: ' + pubkey);
|
||||||
// pubkey = pubkey;
|
pubkey = pubkey;
|
||||||
// // fetchMoreCursor = fetchMoreCursor;
|
// // fetchMoreCursor = fetchMoreCursor;
|
||||||
// titi = 'lourd';
|
});
|
||||||
// });
|
|
||||||
|
|
||||||
return pubkey;
|
return pubkey;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -13,12 +13,12 @@ class Gecko extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final _httpLink = HttpLink(
|
final _httpLink = HttpLink(
|
||||||
uri: 'https://g1.librelois.fr/gva',
|
'https://g1.librelois.fr/gva',
|
||||||
);
|
);
|
||||||
|
|
||||||
final _client = ValueNotifier(
|
final _client = ValueNotifier(
|
||||||
GraphQLClient(
|
GraphQLClient(
|
||||||
cache: InMemoryCache(),
|
cache: GraphQLCache(),
|
||||||
link: _httpLink,
|
link: _httpLink,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
54
pubspec.lock
54
pubspec.lock
|
@ -63,7 +63,7 @@ packages:
|
||||||
name: connectivity
|
name: connectivity
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.9+5"
|
version: "2.0.2"
|
||||||
connectivity_for_web:
|
connectivity_for_web:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -163,6 +163,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.4"
|
version: "0.12.4"
|
||||||
|
gql_dedupe_link:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: gql_dedupe_link
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.10"
|
||||||
gql_dio_link:
|
gql_dio_link:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -170,6 +177,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.0.4"
|
version: "0.0.4"
|
||||||
|
gql_error_link:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: gql_error_link
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.1.1-alpha+1601131172858"
|
||||||
gql_exec:
|
gql_exec:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -177,6 +191,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.5"
|
version: "0.2.5"
|
||||||
|
gql_http_link:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: gql_http_link
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.3.2"
|
||||||
gql_link:
|
gql_link:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -184,20 +205,34 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.1"
|
version: "0.3.1"
|
||||||
|
gql_transform_link:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: gql_transform_link
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "0.1.5"
|
||||||
graphql:
|
graphql:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: graphql
|
name: graphql
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.0"
|
version: "4.0.0-beta.5"
|
||||||
graphql_flutter:
|
graphql_flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: graphql_flutter
|
name: graphql_flutter
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.0"
|
version: "4.0.0-beta.5"
|
||||||
|
hive:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: hive
|
||||||
|
url: "https://pub.dartlang.org"
|
||||||
|
source: hosted
|
||||||
|
version: "1.4.4+1"
|
||||||
http:
|
http:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -268,13 +303,13 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0-nullsafety.3"
|
version: "1.3.0-nullsafety.3"
|
||||||
mime:
|
normalize:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: mime
|
name: normalize
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.9.7"
|
version: "0.4.5"
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -373,13 +408,6 @@ packages:
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.21"
|
version: "0.2.21"
|
||||||
quiver:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: quiver
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.1.5"
|
|
||||||
rxdart:
|
rxdart:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -34,7 +34,7 @@ dependencies:
|
||||||
intl:
|
intl:
|
||||||
flutter_launcher_icons: "^0.8.0"
|
flutter_launcher_icons: "^0.8.0"
|
||||||
infinite_scroll_pagination: ^2.2.3
|
infinite_scroll_pagination: ^2.2.3
|
||||||
graphql_flutter: ^3.0.1
|
graphql_flutter: ^4.0.0-beta.5 #^3.1.0
|
||||||
|
|
||||||
|
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
|
|
Loading…
Reference in New Issue