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
I register a couple of lazy singletons before the app is started.
void setupLocators() { locator.registerLazySingleton(() => DatabaseService()); locator.registerLazySingleton(() => Foo()); locator.registerLazySingleton(() => Bar()); }
void main() { setupLocators(); runApp(MultiProvider( providers: <SingleChildWidget>[ ChangeNotifierProvider.value(value: locator<Foo>()), ChangeNotifierProvider.value(value: locator<Bar>()), ], child: App(), )); }
But the package seems to print the name of each registered lazy singleton to the console at the same time.
I/flutter (21761): DatabaseService I/flutter (21761): Foo I/flutter (21761): Bar
The text was updated successfully, but these errors were encountered:
There's already a PR for this issue: #50
Sorry, something went wrong.
Sorry for not checking the previous issues or current pull requests.
Fixed now in V4.0.1
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
I register a couple of lazy singletons before the app is started.
But the package seems to print the name of each registered lazy singleton to the console at the same time.
The text was updated successfully, but these errors were encountered: