Skip to content

Commit

Permalink
fix: added shrink items to widgetbook
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Nov 12, 2024
1 parent fa0ea0a commit b268f46
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Widget navigationBarUseCase(BuildContext context) {
bool showButton = context.knobs.boolean(label: 'Button');
int? dividerIndex = context.knobs.intOrNull.slider(label: 'Divider', min: 0, max: 6, initialValue: null);
bool showSplit = context.knobs.boolean(label: 'Split Items');
bool shrinkItems = context.knobs.boolean(label: 'Shrink Items');
return StatefulBuilder(builder: (context, setState) {
return WidgetbookScaffold(
builder: (context, _) => ZetaNavigationBar(
Expand All @@ -24,6 +25,7 @@ Widget navigationBarUseCase(BuildContext context) {
currentIndex: currIndex,
splitItems: showSplit,
dividerIndex: dividerIndex,
shrinkItems: shrinkItems,
),
);
});
Expand Down

0 comments on commit b268f46

Please sign in to comment.