2021-01-26 21:00:26 +01:00
|
|
|
import 'dart:io';
|
2021-11-08 23:12:25 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2021-11-14 19:21:20 +01:00
|
|
|
import 'package:gecko/models/chest_data.dart';
|
2021-11-26 08:56:20 +01:00
|
|
|
import 'package:gecko/models/g1_wallets_list.dart';
|
2021-11-27 05:35:02 +01:00
|
|
|
import 'package:gecko/models/g1_wallets_list_live.dart';
|
2021-11-14 19:21:20 +01:00
|
|
|
import 'package:gecko/models/wallet_data.dart';
|
2021-11-07 04:23:05 +01:00
|
|
|
import 'package:hive/hive.dart';
|
2021-04-02 11:45:59 +02:00
|
|
|
import 'package:logger/logger.dart';
|
2021-01-30 15:24:08 +01:00
|
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
2021-01-26 21:00:26 +01:00
|
|
|
|
2021-03-19 06:33:48 +01:00
|
|
|
// Files paths
|
2021-01-26 21:00:26 +01:00
|
|
|
Directory appPath;
|
2021-03-19 06:33:48 +01:00
|
|
|
|
2021-01-26 21:00:26 +01:00
|
|
|
String appVersion;
|
2021-01-30 15:24:08 +01:00
|
|
|
SharedPreferences prefs;
|
2021-01-30 19:00:31 +01:00
|
|
|
String endPointGVA;
|
2021-02-08 13:36:50 +01:00
|
|
|
int ramSys;
|
2021-11-07 04:23:05 +01:00
|
|
|
Box<WalletData> walletBox;
|
2021-11-09 04:22:04 +01:00
|
|
|
Box<ChestData> chestBox;
|
2021-11-07 04:23:05 +01:00
|
|
|
Box configBox;
|
2021-11-26 08:56:20 +01:00
|
|
|
Box<G1WalletsList> g1WalletsBox;
|
2021-11-27 05:35:02 +01:00
|
|
|
Box<G1WalletsListLive> g1WalletsBoxLive;
|
2021-03-08 00:32:18 +01:00
|
|
|
|
2021-11-26 08:56:20 +01:00
|
|
|
String cesiumPod = "https://g1.data.le-sou.org";
|
|
|
|
// String cesiumPod = "https://g1.data.e-is.pro";
|
2021-03-28 21:37:12 +02:00
|
|
|
|
2021-03-08 00:32:18 +01:00
|
|
|
// Responsive ratios
|
|
|
|
bool isTall;
|
|
|
|
double ratio;
|
2021-04-02 11:45:59 +02:00
|
|
|
|
|
|
|
// Logger
|
2021-04-02 12:05:37 +02:00
|
|
|
var log = Logger();
|
2021-11-08 23:12:25 +01:00
|
|
|
|
|
|
|
// Colors
|
2021-11-14 19:21:20 +01:00
|
|
|
Color orangeC = const Color(0xffd07316);
|
|
|
|
Color yellowC = const Color(0xffFFD68E);
|
|
|
|
Color floattingYellow = const Color(0xffEFEFBF);
|
|
|
|
Color backgroundColor = const Color(0xFFF5F5F5);
|