mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
ID -> Id
This commit is contained in:
parent
e753a0badb
commit
c68e739ffe
1 changed files with 7 additions and 7 deletions
|
@ -39,7 +39,7 @@ class Prefs extends ChangeNotifier {
|
||||||
_startupWalletId = await _getStartupWalletId();
|
_startupWalletId = await _getStartupWalletId();
|
||||||
_externalCalls = await _getHasExternalCalls();
|
_externalCalls = await _getHasExternalCalls();
|
||||||
_familiarity = await _getHasFamiliarity();
|
_familiarity = await _getHasFamiliarity();
|
||||||
_userID = await _getUserID();
|
_userId = await _getUserId();
|
||||||
|
|
||||||
_initialized = true;
|
_initialized = true;
|
||||||
}
|
}
|
||||||
|
@ -605,10 +605,10 @@ class Prefs extends ChangeNotifier {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
String? _userID;
|
String? _userId;
|
||||||
String? get userID => _userID;
|
String? get userID => _userId;
|
||||||
|
|
||||||
Future<String?> _getUserID() async {
|
Future<String?> _getUserId() async {
|
||||||
String? userID = await DB.instance
|
String? userID = await DB.instance
|
||||||
.get<dynamic>(boxName: DB.boxNamePrefs, key: "userID") as String?;
|
.get<dynamic>(boxName: DB.boxNamePrefs, key: "userID") as String?;
|
||||||
if (userID == null) {
|
if (userID == null) {
|
||||||
|
@ -618,10 +618,10 @@ class Prefs extends ChangeNotifier {
|
||||||
return userID;
|
return userID;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> saveUserID(String userID) async {
|
Future<void> saveUserID(String userId) async {
|
||||||
_userID = userID;
|
_userId = userId;
|
||||||
await DB.instance
|
await DB.instance
|
||||||
.put<dynamic>(boxName: DB.boxNamePrefs, key: "userID", value: _userID);
|
.put<dynamic>(boxName: DB.boxNamePrefs, key: "userID", value: _userId);
|
||||||
// notifyListeners();
|
// notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue