Fields

Field types form the backbone of Addons and Knobs in Widgetbook. These types define the data that can be manipulated within the Widgetbook environment, enabling users to tweak settings and see their impact in real-time. Each field type corresponds to a different data input and is represented by a suitable user interface element.

FieldTypeWidget
BooleanFieldboolSwitch
IntInputFieldintTextField
IntSliderFieldintSlider
DoubleInputFielddoubleTextField
DoubleSliderFielddoubleSlider
StringFieldStringTextField
DurationFieldDurationTextField
DateTimeFieldDateTimeTextField (with showDatePicker & showTimePicker)
ColorFieldColorColorPicker
ListFieldTDropdownMenu<T>

Each field type makes Widgetbook a flexible and powerful tool for Flutter developers. They allow for real-time changes and visualization of various widget properties, thus enabling interactive development and testing.