gecko/lib/globals.dart

35 lines
834 B
Dart
Raw Normal View History

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';
import 'package:gecko/models/wallet_data.dart';
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
// Files paths
2021-01-26 21:00:26 +01:00
Directory appPath;
2021-01-26 21:00:26 +01:00
String appVersion;
2021-01-30 15:24:08 +01:00
SharedPreferences prefs;
String endPointGVA;
int ramSys;
Box<WalletData> walletBox;
2021-11-09 04:22:04 +01:00
Box<ChestData> chestBox;
Box configBox;
2021-04-03 00:07:03 +02:00
// String cesiumPod = "https://g1.data.le-sou.org";
String cesiumPod = "https://g1.data.e-is.pro";
// 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);