We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I register the Singleton as follows but GetIt.allready(); never call. Application stuck at log 6. Please help.
Future<void> configureDependencies() async { final GetIt getIt = GetIt.instance; log('1'); SharedPreferences prefs = await SharedPreferences.getInstance(); getIt.registerSingletonAsync<SharedPreferences>( () async => prefs, signalsReady: true, ); log('2'); getIt.registerSingletonAsync( () async => APIHandler(), dependsOn: [SharedPreferences], signalsReady: true, ); //Storage log('3'); getIt.registerSingletonAsync( () async => UserStorage(), dependsOn: [SharedPreferences], signalsReady: true, ); log('4'); getIt.registerSingletonAsync( () async => SessionStorage(), dependsOn: [SharedPreferences], signalsReady: true, ); log('5'); //Repository getIt.registerSingletonAsync( () async => UserRepository(), dependsOn: [SharedPreferences], signalsReady: true, ); log('6'); await getIt.allReady(); log('7'); }
The text was updated successfully, but these errors were encountered:
Change signalsReady to false solved my problem.
Sorry, something went wrong.
No branches or pull requests
Hi,
I register the Singleton as follows but GetIt.allready(); never call. Application stuck at log 6.
Please help.
The text was updated successfully, but these errors were encountered: