Double Arg
The double arg renders a text field or slider in the Widgetbook UI where you can dynamically enter a double value for a widget property.
Variants
The double arg has two style variants, each with a regular and nullable type:
- Input: A text field for entering double values.
- Slider: A slider for selecting double values within a range.
Usage
my_widget.stories.dart
final $Default = _Story(
args: _Args(
progress: NullableDoubleArg(null),
),
);
Usage
my_widget.stories.dart
final $Default = _Story(
args: _Args(
progress: DoubleArg(
0.5,
style: const SliderDoubleArgStyle(min: 0.0, max: 1.0, divisions: 10),
),
),
);

