Refactor preferences service initialization to lazy load SharedPreferences and make registerDefaultServices synchronous
This commit is contained in:
@@ -11,8 +11,7 @@ void main() {
|
||||
|
||||
// Create preferences instance that will use the real SharedPreferences
|
||||
// but with in-memory storage for testing
|
||||
final sharedInstance = await SharedPreferences.getInstance();
|
||||
preferences = PreferencesImpl(instance: sharedInstance);
|
||||
preferences = PreferencesImpl();
|
||||
|
||||
// Give time for initialization
|
||||
await Future.delayed(Duration.zero);
|
||||
|
||||
Reference in New Issue
Block a user