Skip to content

Prints class names on start #55

New issue

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

Closed
kansson opened this issue Mar 11, 2020 · 3 comments
Closed

Prints class names on start #55

kansson opened this issue Mar 11, 2020 · 3 comments

Comments

@kansson
Copy link

kansson commented Mar 11, 2020

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
@JonasWanke
Copy link

There's already a PR for this issue: #50

@kansson
Copy link
Author

kansson commented Mar 12, 2020

Sorry for not checking the previous issues or current pull requests.

@kansson kansson closed this as completed Mar 12, 2020
@escamoteur
Copy link
Collaborator

Fixed now in V4.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants