switch to new image api strat and fix onboarding cache strat
This commit is contained in:
parent
48b434dad9
commit
a5bdee892c
39 changed files with 540 additions and 791 deletions
|
|
@ -64,10 +64,16 @@ class MzansiWalletProvider extends ChangeNotifier {
|
|||
loadCachedWallet();
|
||||
}
|
||||
|
||||
Future<void> clearWalletCacheAndProvider() async {
|
||||
await _hiveData.clearWalletCache();
|
||||
reset();
|
||||
}
|
||||
|
||||
void reset() {
|
||||
toolIndex = 0;
|
||||
loyaltyCards = [];
|
||||
favouriteCards = [];
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void setToolIndex(int index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue