41 lines
1.0 KiB
Dart
41 lines
1.0 KiB
Dart
import 'package:hive/hive.dart';
|
|
import 'package:unit2/model/offline/offline_profile.dart';
|
|
|
|
import '../model/profile/basic_information/primary-information.dart';
|
|
|
|
double screenWidth = 0;
|
|
double screenHeight = 0;
|
|
double blockSizeHorizontal = 0;
|
|
double blockSizeVertical = 0;
|
|
double safeAreaHorizontal = 0;
|
|
double safeAreaVertical = 0;
|
|
double safeBlockHorizontal = 0;
|
|
double safeBlockVertical = 0;
|
|
const xClientKey = "unitK3CQaXiWlPReDsBzmmwBZPd9Re1z";
|
|
const xClientSecret = "unitcYqAN7GGalyz";
|
|
String? globalFistname;
|
|
String? globalLastname;
|
|
String? globalMiddleName;
|
|
DateTime? globalBday;
|
|
String? globalSex;
|
|
Profile? globalCurrentProfile;
|
|
|
|
///offline data
|
|
bool? globalOfflineAvailable;
|
|
OfflineProfile? globalOfflineProfile;
|
|
//// hive boxes
|
|
Box? CREDENTIALS;
|
|
Box? SOS;
|
|
Box? OFFLINE;
|
|
|
|
Map<String, String> getHeaders() {
|
|
String xClientKey = "unitK3CQaXiWlPReDsBzmmwBZPd9Re1z";
|
|
String xClientKeySecret = "unitcYqAN7GGalyz";
|
|
|
|
return {
|
|
'Content-Type': 'application/json; charset=UTF-8',
|
|
'X-Client-Key': xClientKey,
|
|
'X-Client-Secret': xClientKeySecret,
|
|
};
|
|
}
|