diff --git a/example/widgetbook/pages/components/chip_widgetbook.dart b/example/widgetbook/pages/components/chip_widgetbook.dart index 057d6d6c..30d34c3c 100644 --- a/example/widgetbook/pages/components/chip_widgetbook.dart +++ b/example/widgetbook/pages/components/chip_widgetbook.dart @@ -10,6 +10,7 @@ Widget inputChipUseCase(BuildContext context) { return WidgetbookScaffold( builder: (context, _) => ZetaInputChip( + onTap: context.knobs.boolean(label: 'Selectable', initialValue: true) ? () {} : null, label: context.knobs.string(label: 'Label', initialValue: 'Label'), leading: context.knobs.boolean(label: 'Avatar', initialValue: true) ? ZetaAvatar( @@ -26,6 +27,7 @@ Widget inputChipUseCase(BuildContext context) { Widget filterChipUseCase(BuildContext context) => WidgetbookScaffold( builder: (context, _) => ZetaFilterChip( + onTap: context.knobs.boolean(label: 'Selectable', initialValue: true) ? (value) {} : null, label: context.knobs.string(label: 'Label', initialValue: 'Label'), selected: context.knobs.boolean(label: 'Selected', initialValue: true), ), @@ -34,6 +36,7 @@ Widget filterChipUseCase(BuildContext context) => WidgetbookScaffold( Widget assistChipUseCase(BuildContext context) { return WidgetbookScaffold( builder: (context, _) => ZetaAssistChip( + onTap: context.knobs.boolean(label: 'Selectable', initialValue: true) ? () {} : null, label: context.knobs.string(label: 'Label', initialValue: 'Label'), leading: ZetaIcon(iconKnob(context)), ),