ClosedHousehold helps health workers to mark a house hold closed after visiting and record the details like latitude and name of household head member.
Features
- Create a closed household
- Update user actions like Resolved, Sprayed etc.
Getting started
To use this package, add the following dependency to your pubspec.yaml
file:
dependencies:
closed_household: ^any
Usage
To Navigate to any screens of the package:
First add closed_household_router to your main app router
Navigate to the required screen using the below code and pass the required data:
context.router.push(ClosedHouseholdDetailsRoute(),);
To Consume any bloc of the package in main app:
BlocProvider(create: (context) {return ClosedHouseholdBloc();},),
Closed Household package requires below data to be passed from main app:
String? _tenantId;
String? _loggedInUserUuid;
String? _projectId;
BoundaryModel? _boundaryModel;
PersistenceConfiguration? _persistenceConfiguration = PersistenceConfiguration
.offlineFirst;
To set the required data use:
ClosedHouseholdSingleton().setInitialData();
Libraries
- blocs/app_localization
- blocs/closed_household
- blocs/closed_household_localization_delegate
- closed_household
- pages/closed_household_acknowledgement
- pages/closed_household_details
- pages/closed_household_summary
- pages/closed_household_wrapper
- router/closed_household_router
- router/closed_household_router.gm
- utils/constants
- utils/extensions/extensions
- utils/i18_key_constants
- utils/utils
- widgets/localized
- widgets/showcase/config/showcase_constants
- widgets/showcase/showcase_wrappers