Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Created stepper input #67

Merged
merged 4 commits into from
May 9, 2024
Merged

feat: Created stepper input #67

merged 4 commits into from
May 9, 2024

Conversation

mikecoomber
Copy link
Collaborator

No description provided.

Copy link
Contributor

github-actions bot commented May 8, 2024

Visit the preview URL for this PR (updated for commit bc02032):

https://zeta-flutter-main--pr-67-stepper-input-09q89l3e.web.app

(expires Wed, 15 May 2024 16:47:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 5ca681de0a0ad9185b252304c113355d5ee04ca6

Widget stepperInputUseCase(BuildContext context) {
return WidgetbookTestWidget(
widget: ZetaStepperInput(
initialValue: context.knobs.intOrNull.input(label: 'Initial value'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better if this one were just int rather than intOrNull as it could be confusing in widgetbook

final bool rounded;

/// The size of the stepper input.
final ZetaWidgetSize size;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should use this enum if we aren't using all the values. Maybe we need an enum with just 2 sizes? or even just a boolean isLarge?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to use an enum but didn't want to create a new one, but I can make one just for the stepper

@mikecoomber mikecoomber merged commit ca51b1f into main May 9, 2024
5 checks passed
@mikecoomber mikecoomber deleted the stepper-input branch May 9, 2024 08:31
This was referenced Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants