Skip to content

Commit

Permalink
feat: Added maxValue on progress circle to widgetbook
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Nov 5, 2024
1 parent f73a063 commit ed4d2c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/widgetbook/pages/components/progress_widgetbook.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Widget progressBarUseCase(BuildContext context) => WidgetbookScaffold(

Widget progressCircleUseCase(BuildContext context) => WidgetbookScaffold(
builder: (context, _) => ZetaProgressCircle(
progress: context.knobs.double.slider(label: 'Progress', min: 0, max: 1, initialValue: 0.5).toDouble(),
progress: context.knobs.double.input(label: 'Progress', initialValue: 0.5),
size: context.knobs.list(
initialOption: ZetaCircleSizes.xl,
label: 'Size',
Expand All @@ -34,5 +34,6 @@ Widget progressCircleUseCase(BuildContext context) => WidgetbookScaffold(
),
onCancel: context.knobs.boolean(label: "Can Cancel") ? () {} : null,
label: context.knobs.stringOrNull(label: 'Label'),
maxValue: context.knobs.double.input(label: 'Max Value', initialValue: 1),
),
);

0 comments on commit ed4d2c4

Please sign in to comment.