get_it icon indicating copy to clipboard operation
get_it copied to clipboard

Get It - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App. Maintainer: @escamote...

Results 53 get_it issues
Sort by recently updated
recently updated
newest added

This is a great package but would be nice if there were annotations. This will make the code cleaner. I would like to implement this. But I am looking for...

What's the safest place to register singletons with GetIt, `main.dart` or elsewhere? On the app I'm working on now we're doing it in the splash screen that is our `initialRoute`....

**User cases and repositories cant be registered and getting this issue while running** The following assertion was thrown: Object/factory with type HomePageBloc is not registered inside GetIt. (Did you accidentally...

Problem: The example app is incompatible with the current version of flutter (>2.10). Solution: Recreated the example app project with "flutter create" cli and updated files.

This issue is a collection of thoughts I had when reading the [gskinner article](https://blog.gskinner.com/archives/2021/12/flutter-a-skeleton-app-w-getit-getitmixin.html) on their state management and DI solution using get_it and get_it_mixin. The main goal here is...

Is it possible to get instances that are ready? For example, when a user logs out, I need to reset all instances (repositories). If I use the `reset` method error...

The latest release on Pub is 7.2.0 (https://pub.dev/packages/get_it/install). However, quite a few commits have happened since then (https://github.com/fluttercommunity/get_it/commits/V7.3.0). There's an issue of course with the tests failing (I wasn't able...

In app i need to `resetLazySingleton` in `dispose` (sync) method in statefull widget. My service dispose method is async and takes long time. Once i am back in widget, `Get.I()`...

Added flag to suppress the printing of error messages. When a user is catching the error themselves and logging it this print is intrusive and should not appear. Default set...

Hi Firstly, thanks for this package - I find it incredibly helpful. I am a bit confused, though, about the use of the `instanceName` option. It is "highly not recommended"...