carp_survey_package 0.20.0 copy "carp_survey_package: ^0.20.0" to clipboard
carp_survey_package: ^0.20.0 copied to clipboard

outdated

CARP survey sampling package. Samples survey data from the Flutter Research Package.

CARP Survey Sampling Package #

pub package

This library contains a sampling package for collecting a survey from the Research Package collecting the survey answer as part of
the carp_mobile_sensing package. This packages supports sampling of the following Measure types:

  • dk.cachet.carp.survey

See the wiki for further documentation, particularly on available measure types and sampling schemas. There is no privacy protection of data collected from surveys (as part of the default Privacy Schema).

For Flutter plugins for other CARP products, see CARP Mobile Sensing in Flutter.

If you're interested in writing you own sampling packages for CARP, see the description on how to extend CARP on the wiki.

Installing #

To use this package, add the following to you pubspc.yaml file. Note that this package only works together with carp_mobile_sensing.

dependencies:
  flutter:
    sdk: flutter
  carp_core: ^0.20.0
  carp_mobile_sensing: ^0.20.0
  carp_survey_package: ^0.20.0
  ...

Using it #

To use this package, import it into your app together with the carp_mobile_sensing package:

import 'package:carp_core/carp_core.dart';
import 'package:carp_mobile_sensing/carp_mobile_sensing.dart';
import 'package:carp_survey_package/survey.dart';

Before creating a study and running it, register this package in the SamplingPackageRegistry.

  SamplingPackageRegistry().register(SurveySamplingPackage());