-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
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'), |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
No description provided.