Added Streams to TourRepository
This commit is contained in:
@ -5,14 +5,8 @@ import 'package:hl_lieferservice/feature/authentication/bloc/auth_bloc.dart';
|
||||
import 'package:hl_lieferservice/feature/authentication/presentation/login_enforcer.dart';
|
||||
import 'package:hl_lieferservice/feature/authentication/service/userinfo.dart';
|
||||
import 'package:hl_lieferservice/feature/cars/presentation/car_management_page.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/detail/bloc/delivery_bloc.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/detail/bloc/note_bloc.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/detail/repository/delivery_repository.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/detail/repository/note_repository.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/detail/service/notes_service.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/overview/bloc/tour_bloc.dart';
|
||||
import 'package:hl_lieferservice/feature/delivery/overview/repository/tour_repository.dart';
|
||||
import 'package:hl_lieferservice/feature/settings/bloc/settings_bloc.dart';
|
||||
import 'package:hl_lieferservice/widget/home/bloc/navigation_bloc.dart';
|
||||
import 'package:hl_lieferservice/widget/operations/bloc/operation_bloc.dart';
|
||||
import 'package:hl_lieferservice/widget/operations/presentation/operation_view_enforcer.dart';
|
||||
@ -53,33 +47,7 @@ class _DeliveryAppState extends State<DeliveryApp> {
|
||||
(context) => TourBloc(
|
||||
opBloc: context.read<OperationBloc>(),
|
||||
tourRepository: TourRepository(
|
||||
service: DeliveryInfoService(),
|
||||
),
|
||||
),
|
||||
),
|
||||
BlocProvider(
|
||||
create:
|
||||
(context) => NoteBloc(
|
||||
opBloc: context.read<OperationBloc>(),
|
||||
repository: NoteRepository(
|
||||
service: NoteService(
|
||||
backendUrl: currentAppState.config.backendUrl,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
BlocProvider(
|
||||
create:
|
||||
(context) => DeliveryBloc(
|
||||
noteBloc: context.read<NoteBloc>(),
|
||||
opBloc: context.read<OperationBloc>(),
|
||||
noteRepository: NoteRepository(
|
||||
service: NoteService(
|
||||
backendUrl: currentAppState.config.backendUrl,
|
||||
),
|
||||
),
|
||||
repository: DeliveryRepository(
|
||||
service: DeliveryInfoService(),
|
||||
service: TourService(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user