injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Code Generator for get_it

Results 121 injectable issues
Sort by recently updated
recently updated
newest added

I created a minimal (not-)working example [here](https://github.com/ChristianNavolskyi/intest). In `get_it.config.dart` the class `A` is added first to the helper, but it depends on the second class `B`. ``` dart ... gh.singleton(AImpl(get()));...

command: `flutter pub run build_runner build --delete-conflicting-outputs --verbose` error: ``` [ +83 ms] executing: sysctl hw.optional.arm64 [ +14 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] sysctl: unknown oid...

Every time when i try to run my flutter app in web release or profile i get an error that DI failed. ``` zone.dart:1175 Uncaught TypeError: Cannot read property 'cx'...

The above is corresponding to my @InjectableInit

Hi i am newbee in injectable, and i can't undestand how i can make one thing (and it's possible?) I want mock one chosen class (other class must be from...

I don't want to inject a dev config in prod env.Now the code like below: ``` @dev class DevConfig {} @prod class ProdConfig{} $initGetIt(getIt,environment:prod); ``` but the DevConfig still be...

Hello, I have FirstViewCubit which already registered. However, when its called from the test directory, I get the following error ``` The following assertion was thrown building FirstViewBuilder: Object/factory with...

``` abstract class A {} abstract class B extends A {} @LazySingleton(as: B) class ApiClient extends B { } class UserRepository {B client} ``` When I run the generator, I...

flutter doctor ``` Flutter 2.1.0-13.0.pre.574 • channel master • https://github.com/flutter/flutter.git Framework • revision 02efffc134 (31 hours ago) • 2021-04-10 03:49:01 -0400 Engine • revision 8863afff16 Tools • Dart 2.13.0 (build...

I have this code: `abstract class AbstractClass {}` ``` @devEnv @Singleton(as: AbstractClass) class DevConcreteClass1 implements AbstractClass {} ``` ``` @devEnv @Singleton() class DevBigClass1 { final DevConcreteClass1 abstractClass; DevBigClass1(this.abstractClass); } ```...