Cesium+ Pod in global variable; Fix 2 bugs in walletOptions
This commit is contained in:
parent
3c3f0f2280
commit
687e14de3f
|
@ -13,6 +13,8 @@ SharedPreferences prefs;
|
||||||
String endPointGVA;
|
String endPointGVA;
|
||||||
int ramSys;
|
int ramSys;
|
||||||
|
|
||||||
|
String cesiumPod = "https://g1.data.le-sou.org";
|
||||||
|
|
||||||
// Responsive ratios
|
// Responsive ratios
|
||||||
bool isTall;
|
bool isTall;
|
||||||
double ratio;
|
double ratio;
|
||||||
|
|
|
@ -51,7 +51,7 @@ class CesiumPlusProvider with ChangeNotifier {
|
||||||
"indices_boost": {"user": 100, "page": 1, "group": 0.01}
|
"indices_boost": {"user": 100, "page": 1, "group": 0.01}
|
||||||
});
|
});
|
||||||
|
|
||||||
String cesiumPod = "https://g1.data.le-sou.org";
|
|
||||||
String requestUrl = "/user,page,group/profile,record/_search";
|
String requestUrl = "/user,page,group/profile,record/_search";
|
||||||
String podRequest = cesiumPod + requestUrl;
|
String podRequest = cesiumPod + requestUrl;
|
||||||
|
|
||||||
|
|
|
@ -62,3 +62,4 @@ const String getBalance = r'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
''';
|
''';
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ class UnlockingWallet extends StatelessWidget {
|
||||||
pinColor = Colors.green[400];
|
pinColor = Colors.green[400];
|
||||||
// await Future.delayed(Duration(milliseconds: 50));
|
// await Future.delayed(Duration(milliseconds: 50));
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
formKey.currentContext,
|
||||||
SmoothTransition(
|
SmoothTransition(
|
||||||
page: WalletOptions(
|
page: WalletOptions(
|
||||||
walletNbr: walletNbr,
|
walletNbr: walletNbr,
|
||||||
|
|
|
@ -12,7 +12,7 @@ import 'package:provider/provider.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
// ignore: must_be_immutable
|
||||||
class WalletOptions extends StatelessWidget with ChangeNotifier {
|
class WalletOptions extends StatelessWidget {
|
||||||
WalletOptions(
|
WalletOptions(
|
||||||
{Key keyMyWallets,
|
{Key keyMyWallets,
|
||||||
@required this.walletNbr,
|
@required this.walletNbr,
|
||||||
|
@ -160,7 +160,7 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
||||||
variables: {
|
variables: {
|
||||||
'pubkey': _walletOptions.pubkey.text,
|
'pubkey': _walletOptions.pubkey.text,
|
||||||
},
|
},
|
||||||
pollInterval: Duration(seconds: 1),
|
// pollInterval: Duration(seconds: 1),
|
||||||
),
|
),
|
||||||
builder: (QueryResult result,
|
builder: (QueryResult result,
|
||||||
{VoidCallback refetch, FetchMore fetchMore}) {
|
{VoidCallback refetch, FetchMore fetchMore}) {
|
||||||
|
@ -171,6 +171,10 @@ class WalletOptions extends StatelessWidget with ChangeNotifier {
|
||||||
if (result.isLoading) {
|
if (result.isLoading) {
|
||||||
return Text('Loading');
|
return Text('Loading');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: catch links errors
|
||||||
|
print(result);
|
||||||
|
|
||||||
// List repositories = result.data['viewer']['repositories']['nodes'];
|
// List repositories = result.data['viewer']['repositories']['nodes'];
|
||||||
String wBalanceUD;
|
String wBalanceUD;
|
||||||
if (result.data['balance'] == null) {
|
if (result.data['balance'] == null) {
|
||||||
|
|
Loading…
Reference in New Issue