flutter_design_annotation library

Classes

ComponentParamBuilder
An interface indicating it is a parameter builder used by a DataBuilder.
Design
Flags a class as needing to be processed by flutter_design_codegen to generate into an importable design system viewer page. It also allows passing options to customize the builder's behavior.
DesignExample
An example description.
DesignExamples
Provide examples based on a specific constructor. The generated examples will be displayed as subsections following the section of the constructor widget designer.
DesignField
Provide a viewer data builder parameter for the field (be it a class field, or a method/ctor parameter field).
TDataBuilder<TWidget, TBuildContext, TData, TParameter>
Interface of a data builder
TDataBuilderFactory<TBuildContext>
Interface of a data builder factory

Typedefs

ComponentBuilder<TWidget, TBuildContext> = TWidget Function(TBuildContext context, TDataBuilderFactory<TBuildContext> factory)
TUpdateDataBuilder<TWidget, TBuildContext, TData, TParameter> = void Function(TDataBuilder<TWidget, TBuildContext, TData, TParameter> builder)