fantascenza attachment bloc agnostico, ora continuo refactor rimuovendo customer file bloc ecc.
This commit is contained in:
@@ -24,7 +24,7 @@ import 'package:flux/features/master_data/staff/ui/staff_screen.dart';
|
||||
import 'package:flux/features/master_data/store/ui/stores_screen.dart';
|
||||
import 'package:flux/features/onboarding/blocs/onboarding_cubit.dart';
|
||||
import 'package:flux/features/onboarding/ui/onboarding_screen.dart';
|
||||
import 'package:flux/features/attachments/blocs/operation_files_bloc.dart';
|
||||
import 'package:flux/features/attachments/blocs/attachments_bloc.dart';
|
||||
import 'package:flux/features/operations/models/operation_model.dart';
|
||||
import 'package:flux/features/operations/ui/operation_form_screen.dart';
|
||||
import 'package:flux/features/operations/ui/operation_mobile_upload_screen.dart';
|
||||
@@ -203,8 +203,9 @@ class AppRouter {
|
||||
context.read<StaffCubit>().loadStaffForStore(currentStoreId);
|
||||
|
||||
return BlocProvider(
|
||||
create: (context) => OperationFilesBloc(
|
||||
operationId: operationId ?? existingOperation?.id,
|
||||
create: (context) => AttachmentsBloc(
|
||||
parentId: operationId ?? existingOperation?.id,
|
||||
parentType: AttachmentParentType.operation,
|
||||
),
|
||||
child: OperationFormScreen(
|
||||
operationId: operationId ?? existingOperation?.id,
|
||||
@@ -232,7 +233,10 @@ class AppRouter {
|
||||
context.read<ProductsCubit>().loadBrands();
|
||||
context.read<StaffCubit>().loadStaffForStore(currentStoreId);
|
||||
return BlocProvider(
|
||||
create: (context) => OperationFilesBloc(operationId: operationId),
|
||||
create: (context) => AttachmentsBloc(
|
||||
parentId: operationId,
|
||||
parentType: AttachmentParentType.operation,
|
||||
),
|
||||
child: OperationMobileUploadScreen(
|
||||
operationId: operationId,
|
||||
operationName: operationName,
|
||||
|
||||
Reference in New Issue
Block a user