ui library

The UI library of Research Package.

Normally you don't need to use these widgets directly. After creating the model objects from research_package_model and adding them to an RPTask you can present the different elements by passing it to an RPUITask.

This library contains various UI representations (Widgets) of the objects declared in research_package_model. Many of these Widgets are responsible for making the collected results accessible to others. Also contains general styles, UI statics used in Research Package UI in RPStyles.

Classes

AssetLocalizationLoader
A LocalizationLoader which can load translations from file assets bundles. Remember to add the language file assets to the pubspec.yaml file.
AssetLocalizations
Localization support using assets files.
AssetLocalizationsDelegate
A factory for a set of localized resources of type AssetLocalizations, to be loaded by a Localizations widget.
DataCollectionListItem
DataCollectionListItemState
InstructionImage
LocalizationLoader
Interface for location loaders who knows how to load a translation map for a Locale.
MapLocalizationLoader
A LocalizationLoader which can load translations from a map.
RPActivityEventLogger
The information logger used in RPUIActivityStep. It fills and modifies a RPActivityResult with events from an activity.
RPColors
RPLocalizations
Localization support for Research Package using LocalizationLoader configurations.
RPLocalizationsDelegate
RPUIActivityStep
The UI representation of the RPActivityStep. This widget is the container, the concrete content depends on the input step's runtimeType.
RPUIActivityStepState
RPUIChoiceQuestionBody
The UI representation of RPChoiceAnswerFormat. This UI part appears embedded in a RPUIQuestionStep. Depending on the RPChoiceAnswerFormat's ChoiceAnswerStyle property, the user can select only one or multiple options.
RPUIChoiceQuestionBodyState
RPUICompletionStep
The UI representation of RPCompletionStep
RPUICompletionStepState
RPUIConsentReviewStep
The UI representation of RPConsentReviewStep
RPUIConsentReviewStepState
RPUIDateTimeQuestionBody
RPUIDateTimeQuestionBodyState
RPUIDoubleQuestionBody
RPUIDoubleQuestionBodyState
RPUIFormStep
RPUIFormStepState
RPUIImageChoiceQuestionBody
RPUIImageChoiceQuestionBodyState
RPUIInstructionStep
The UI representation of RPInstructionStep
RPUIInstructionStepState
RPUIIntegerQuestionBody
RPUIIntegerQuestionBodyState
RPUIQuestionStep
The UI representation of the RPQuestionStep.
RPUIQuestionStepState
RPUISliderQuestionBody
RPUISliderQuestionBodyState
RPUITask
This class is the primary entry point for the presentation of the Research Package framework UI. It presents the steps of an RPOrderedTask (either navigable or just linear) and then provides the RPTaskResult object.
RPUITaskState
RPUITextInputQuestionBody
RPUITextInputQuestionBodyState
RPUITimerStep
The UI representation of the RPQuestionStep. This widget is the container, the concrete content depends on the input step's RPAnswerFormat.
RPUITimerStepState
RPUIVisualConsentStep
The UI representation of RPVisualConsentStep
RPUIVisualConsentStepState

Enums

ActivityStatus
The three stages each test consists of. These can be exclude using includeInstructions or includeResults.

Properties

aboutCardContentStyle TextStyle
getter/setter pair
aboutCardInfoStyle TextStyle
getter/setter pair
aboutCardSubtitleStyle TextStyle
getter/setter pair
aboutCardTimeAgoStyle TextStyle
getter/setter pair
aboutCardTitleStyle TextStyle
getter/setter pair
aboutStudyCardTitleStyle TextStyle
getter/setter pair
audioContentStyle TextStyle
getter/setter pair
audioTitleStyle TextStyle
getter/setter pair
dataCardRightTitleStyle TextStyle
getter/setter pair
dataCardTitleStyle TextStyle
getter/setter pair
dataVizCardBottomNumber TextStyle
getter/setter pair
dataVizCardBottomText TextStyle
getter/setter pair
dataVizCardTitleNumber TextStyle
getter/setter pair
dataVizCardTitleText TextStyle
getter/setter pair
deviceSubtitle TextStyle
getter/setter pair
deviceTitle TextStyle
getter/setter pair
healthServiceConnectMessageStyle TextStyle
getter/setter pair
healthServiceConnectTitleStyle TextStyle
getter/setter pair
heartRateBPMTextStyle TextStyle
getter/setter pair
heartRateNumberStyle TextStyle
getter/setter pair
inputFieldStyle TextStyle
getter/setter pair
legendStyle TextStyle
getter/setter pair
measuresStyle TextStyle
getter/setter pair
profileActionStyle TextStyle
getter/setter pair
profileSectionStyle TextStyle
getter/setter pair
profileTitleStyle TextStyle
getter/setter pair
readMoreStudyStyle TextStyle
getter/setter pair
researchPackageDarkTheme ThemeData
getter/setter pair
researchPackageTheme ThemeData
getter/setter pair
scoreNumberStyle TextStyle
getter/setter pair
scoreNumberStyleSmall TextStyle
getter/setter pair
scoreTextStyle TextStyle
getter/setter pair
sectionTitleStyle TextStyle
getter/setter pair
studyDescriptionStyle TextStyle
getter/setter pair
studyDetailsInfoMessage TextStyle
getter/setter pair
studyDetailsInfoTitle TextStyle
getter/setter pair
studyNameStyle TextStyle
getter/setter pair
studyTitleStyle TextStyle
getter/setter pair
surveysCardTotalTextStyle TextStyle
getter/setter pair
timerStyle TextStyle
getter/setter pair
visualConsentStepSummaryStyle TextStyle
getter/setter pair
visualConsentStepTileStyle TextStyle
getter/setter pair
visualConsentStepTitleStyle TextStyle
getter/setter pair
welcomeMessageStyle TextStyle
getter/setter pair