Complaints package helps people to file complaints , they can provide Complaint type , location and details about the Complaint.
Features
- Complaints Pages: The package includes several pages like
complaints_type.dart
,complaints_location.dart
,complaints_details.dart
that provide the user interface for Filing Complaint.
- Complaints Blocs: It provides various BLoCs Like
ComplaintsInboxBloc
,ComplaintsRegistrationBloc
for state management using the BLoC pattern. These BLoCs handle the business logic for Filing Complaints. - Complaints Models: It defines various data models like
PgrAddressModel
,PgrComplaintModel
,PgrServiceModel
etc. used in the attendance management process. - Complaints Repositories: The package provides abstract classes for data repositories,
PgrServiceLocalRepository
,PgrServiceRemoteRepository
, which can be extended to create repositories for different complaint models.
Getting started
To use this package, add the following dependency to your pubspec.yaml
file:
dependencies:
complaints: ^any
Usage
To Navigate to any screens of the package:
First add complaint_router to your main app router
Navigate to the required screen using the below code:
context.router.push(ComplaintsInboxWrapperRoute()),
Complaints package requires below data to be passed from main app:
String? tenantId;
String? loggedInUserUuid;
String? userMobileNumber;
String? loggedInUserName;
List<String>? complaintTypes;
String? userName;
Libraries
- blocs/complaints_inbox/complaints_inbox
- blocs/complaints_registration/complaints_registration
- blocs/localization/app_localization
- blocs/localization/complaints_localization_delegate
- complaints
- complaints.init
- data/repositories/local/pgr_service
- data/repositories/oplog/oplog
- data/repositories/remote/pgr_service
- models/complaints
- models/entities/additional_fields_type
- models/entities/complaint_types
- models/pgr_address
- models/pgr_complaints
- models/pgr_complaints_response
- pages/complaints_acknowledgement
- pages/inbox/complaints_details_view
- pages/inbox/complaints_inbox
- pages/inbox/complaints_inbox_filter
- pages/inbox/complaints_inbox_search
- pages/inbox/complaints_inbox_sort
- pages/inbox/complaints_inbox_wrapper
- pages/registration/complaint_type
- pages/registration/complaints_details
- pages/registration/complaints_location
- pages/registration/complaints_registration_wrapper
- router/complaints_router
- router/complaints_router.gm
- utils/constants
- utils/extensions/extensions
- utils/i18_key_constants
- utils/typedefs
- utils/utils
- widgets/boundary_selection_wrapper
- widgets/localized
- widgets/no_result_card/no_result_card