Skip to content

Commit

Permalink
feat: added rounded to widgetbook
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Nov 7, 2024
1 parent 822bb0c commit 507f848
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions example/widgetbook/pages/components/chip_widgetbook.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Widget inputChipUseCase(BuildContext context) {

return WidgetbookScaffold(
builder: (context, _) => ZetaInputChip(
onTap: context.knobs.boolean(label: 'Selectable', initialValue: true) ? () {} : null,
onTap: context.knobs.boolean(label: 'Disabled', initialValue: false) ? null : () {},
rounded: context.knobs.boolean(label: 'Rounded', initialValue: true),
label: context.knobs.string(label: 'Label', initialValue: 'Label'),
leading: context.knobs.boolean(label: 'Avatar', initialValue: true)
? ZetaAvatar(
Expand All @@ -27,7 +28,8 @@ Widget inputChipUseCase(BuildContext context) {

Widget filterChipUseCase(BuildContext context) => WidgetbookScaffold(
builder: (context, _) => ZetaFilterChip(
onTap: context.knobs.boolean(label: 'Selectable', initialValue: true) ? (value) {} : null,
onTap: context.knobs.boolean(label: 'Disabled', initialValue: false) ? null : (i) {},
rounded: context.knobs.boolean(label: 'Rounded', initialValue: true),
label: context.knobs.string(label: 'Label', initialValue: 'Label'),
selected: context.knobs.boolean(label: 'Selected', initialValue: true),
),
Expand All @@ -36,7 +38,8 @@ Widget filterChipUseCase(BuildContext context) => WidgetbookScaffold(
Widget assistChipUseCase(BuildContext context) {
return WidgetbookScaffold(
builder: (context, _) => ZetaAssistChip(
onTap: context.knobs.boolean(label: 'Selectable', initialValue: true) ? () {} : null,
onTap: context.knobs.boolean(label: 'Disabled', initialValue: false) ? null : () {},
rounded: context.knobs.boolean(label: 'Rounded', initialValue: true),
label: context.knobs.string(label: 'Label', initialValue: 'Label'),
leading: ZetaIcon(iconKnob(context)),
),
Expand Down

0 comments on commit 507f848

Please sign in to comment.