stager library
Classes
- BooleanControl
- An EnvironmentControl for the manipulation of a boolean EnvironmentState variable.
-
DropdownControl<
T> - An EnvironmentControl that allows the user to choose from one of several options.
- EnvironmentAwareApp
-
A MaterialApp that inherits its MediaQuery and applies the
platform
from its ancestors to default Material dark and light themes. -
EnvironmentControl<
T> - Provides a widget that allows interaction with an EnvironmentState-backed variable.
- EnvironmentState
- An observable key-value store containing values that control how Scenes are presented, such as whether dark mode is enabled, whether bold text is enabled, etc.
- Scene
- The central class of Stager, used to demonstrate a single piece of UI.
- ScreenSizePreset
- A named screen size, usually a popular device and its viewport dimensions.
- StagerApp
- A simple app that displays a list of Scenes and navigates to them on tap.
-
StepperControl<
T> -
An
EnvironmentControlPanel
widget that allows a user to decrease and increase a value. - TextInputControl
- A control to manipulate String EnvironmentState values.
Functions
-
runStagerApp(
{required List< Scene> scenes}) → void -
A convenience method to run
scenes
in a StagerApp.
Typedefs
-
EnvironmentControlBuilder<
T> = Widget Function(BuildContext context, T? currentValue, dynamic updateValue(T)) - Signature for a function that creates an EnvironmentState-backed widget.