feat:dio client done
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:dio/dio.dart' as _i361;
|
||||
import 'package:get_it/get_it.dart' as _i174;
|
||||
import 'package:injectable/injectable.dart' as _i526;
|
||||
|
||||
@@ -24,7 +25,9 @@ import '../../feature/main/presentation/blocs/main_bloc/main_bloc.dart'
|
||||
import '../../feature/on_boarding/presentation/blocs/splash_bloc/splash_bloc.dart'
|
||||
as _i311;
|
||||
import '../../food_delivery_client.dart' as _i321;
|
||||
import '../network/dio_client.dart' as _i667;
|
||||
import '../router/app_routes.dart' as _i152;
|
||||
import '../services/request_handler_service.dart' as _i354;
|
||||
import '../services/storage_service.dart' as _i306;
|
||||
|
||||
extension GetItInjectableX on _i174.GetIt {
|
||||
@@ -34,6 +37,7 @@ extension GetItInjectableX on _i174.GetIt {
|
||||
_i526.EnvironmentFilter? environmentFilter,
|
||||
}) {
|
||||
final gh = _i526.GetItHelper(this, environment, environmentFilter);
|
||||
final dioModule = _$DioModule();
|
||||
gh.factory<_i1007.HomeBloc>(() => _i1007.HomeBloc());
|
||||
gh.factory<_i728.BasketBloc>(() => _i728.BasketBloc());
|
||||
gh.factory<_i991.BrowseBloc>(() => _i991.BrowseBloc());
|
||||
@@ -41,9 +45,16 @@ extension GetItInjectableX on _i174.GetIt {
|
||||
gh.factory<_i311.SplashBloc>(() => _i311.SplashBloc());
|
||||
gh.singleton<_i306.StorageService>(() => _i306.StorageService());
|
||||
gh.singleton<_i152.AppRoutes>(() => _i152.AppRoutes());
|
||||
gh.lazySingleton<_i667.DioClient>(() => _i667.DioClient());
|
||||
gh.factory<_i942.LanguageBloc>(
|
||||
() => _i942.LanguageBloc(gh<_i321.StorageService>()),
|
||||
);
|
||||
gh.lazySingleton<_i361.Dio>(() => dioModule.dio(gh<_i667.DioClient>()));
|
||||
gh.singleton<_i354.RequestHandlerService>(
|
||||
() => _i354.RequestHandlerService(gh<_i361.Dio>()),
|
||||
);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
class _$DioModule extends _i667.DioModule {}
|
||||
|
||||
Reference in New Issue
Block a user