survey_form 1.0.0 survey_form: ^1.0.0 copied to clipboard
This package enables supervisors to monitor certain activities and record observations according to defined set of questions.
survey_form Package #
The survey_form
package is a comprehensive solution for creating survey forms.
Features #
- Survey form Pages: The package includes several pages like
survey_form.dart
,survey_form_boundary_view.dart
, andsurvey_form_view.dart
that provide the user interface for creating survey forms.
- SurveyForm Blocs: It provides various BLoCs for state management using the BLoC pattern. These BLoCs handle the business logic for the SurveyForm.
- SurveyForm Models: It defines various data models like
ServiceModel
,ServiceDefinitionModel
, etc. used in the SurveyForm creation process. - SurveyForm Repositories: The package provides abstract classes for data repositories,
ServiceDefinitionLocalRepository
,ServiceLocalRepository
,ServiceDefinitionRemoteRepository
, andServiceRemoteRepository
which can be extended to create repositories for different Service models. It also includes error handling withInvalidApiResponseException
.
Getting Started #
To use this package, add the following dependency to your pubspec.yaml
file:
dependencies:
survey_form: ^any
Usage #
To Navigate to any screens of the package:
First add survey_form_router to your main app router
Navigate to the required screen using the below code:
context.router.push(SurveyFormWrapperRoute());
SurveyForm package requires below data to be passed from main app:
String _projectId = '';
String _projectName='';
String _loggedInIndividualId = '';
String _loggedInUserUuid = '';
String _appVersion = '';
String _tenantId = '';
Object _roles;
bool _isHealthFacilityWorker;
BoundaryModel? _boundaryModel;
PersistenceConfiguration _persistenceConfiguration;