Skip to content

ui

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

Enums

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

Typedefs

RPBottomNavigationBuilder

RPBottomNavigationBuilder = Widget Function(BuildContext context, RPTaskNavigation navigation)

Signature for building a replacement for the default bottom navigation shown at the bottom of an RPUITask. navigation carries the actions of the task — advancing, going back and cancelling — so a custom bar drives the task the same way the default one does. See RPTaskNavigation.

RPCarouselBarBuilder

RPCarouselBarBuilder = Widget Function(BuildContext context, int stepIndex, int stepCount)

Signature for building a replacement for the default carousel bar shown at the top of an RPUITask. stepIndex is the zero-based index of the step currently on screen. stepCount is the number of steps in the task — for an RPNavigableOrderedTask not every step is necessarily shown, so it is an upper bound rather than an exact total.