sandboxed_core library
Classes
- BooleanEditor
- Component
- Config
- DateTimeEditor
- Decorator
- Decorators are a mechanism to wrap a component in arbitrary markup when rendering a story. Components are often created with assumptions about ‘where’ they render. Your styles might expect a theme or layout wrapper, or your UI might expect specific context or data providers.
- DecoratorInterface
- DefaultResolver
-
DelegateParamSerializer<
T> -
DelegateValueEditorPresenter<
T> - DocumentEntry
- DoubleEditor
- DoubleSliderEditor
- DurationEditor
- EdgeInsetsSerializer
- IntegerEditor
- IntegerSliderEditor
-
JsonEditor<
T> -
ListParamEditor<
TItem> -
Meta<
T extends Widget> -
MultiChipsEditor<
TItem> -
MultiSegmentedEditor<
TItem> -
ParamBuilder<
T> -
ParamEditor<
T> -
ParamEditorFactory<
R> - Creates a presenter from ParamEditor
-
ParamSerializer<
T> - ParamStorage
-
ParamValue<
T> -
ReadonlyEditor<
T> - SandboxedAbstractWidgetErrorWidget
- A widget that is used to display an error when a story for an abstract class is built without a builder.
- SandboxedElement
- SandboxedGenericErrorWidget
- A widget that displays an error message
-
SingleChipsEditor<
T> -
SingleSegmentedEditor<
T> - Story
- StoryView
- A widget that displays a story with a set of parameters.
- StringEditor
- UnsupportedParamWidget
- A widget that shows an error message when a story has unsupported parameters
-
ValueEditorPresenter<
T>
Extensions
- BaseParamsX on ParamStorage
-
BooleanEditorsX
on ParamBuilder<
bool> - BooleanParamsX on ParamStorage
-
DecoratorListX
on Iterable<
Decorator> -
ExtraMultiEditorsX
on ParamBuilder<
List< T> > -
ExtraSingleEditorsX
on ParamBuilder<
T> - FlutterParamsX on ParamStorage
- JsonParamsX on ParamStorage
- MultiParamsX on ParamStorage
- SingleParamsX on ParamStorage
-
SliderIntParam
on ParamBuilder<
int> -
SliderParam
on ParamBuilder<
double>
Functions
-
AutomaticBuilder(
BuildContext context, ParamStorage params) → Widget -
defaultLabelBuilder(
dynamic item) → String
Typedefs
- DecoratorCallback = Widget Function(BuildContext context, Widget story)
-
FromJson<
T> = T Function(Map< String, dynamic> json) -
LabelBuilder<
T> = String Function(T item) -
ParamContraint<
T> = bool Function(T newValue) - Presenter = ValueEditorPresenter?
- StoryBuilder = Widget Function(BuildContext context, ParamStorage params)
-
ToJson<
T> = Map< String, dynamic> Function(T value)
Exceptions / Errors
- AbstractWidgetClassException
- Thrown when a story for an abstract class is built without a builder.
- UnsupportedParamException
- Exception thrown when ParamValue cannot be resolved to a valid parameter type.