survey_form 1.0.0 copy "survey_form: ^1.0.0" to clipboard
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, and survey_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, and ServiceRemoteRepository which can be extended to create repositories for different Service models. It also includes error handling with InvalidApiResponseException.

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;
0
likes
100
points
196
downloads

Publisher

unverified uploader

Weekly Downloads

This package enables supervisors to monitor certain activities and record observations according to defined set of questions.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

auto_route, collection, dart_mappable, digit_data_model, digit_ui_components, dio, drift, flutter, flutter_bloc, flutter_svg, fluttertoast, freezed_annotation, group_radio_button, intl, location, overlay_builder, reactive_forms

More

Packages that depend on survey_form