You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when I'm using manual injection then its working fine, can anyone help me to fix this issue?
@injectableInit
void initDI(GetIt getIt) {
final dio = Dio(); // Create a Dio instance
getIt.registerSingleton<Dio>(dio); // Register it as a singleton
getIt.registerSingleton<AppRouter>(AppRouter()); // Register it as a singleton
getIt.registerSingleton<ApiProvider>(ApiProvider(dio)); // Register it as a singleton
getIt.registerSingleton<HomeBloc>(HomeBloc(ApiProvider(dio))); // Register it as a singleton
}
The text was updated successfully, but these errors were encountered:
Auto generateion code.
ERROR:-
but when I'm using manual injection then its working fine, can anyone help me to fix this issue?
The text was updated successfully, but these errors were encountered: