-
Notifications
You must be signed in to change notification settings - Fork 36
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: [UX-332] Add multiselect support #448
Conversation
@witwash can refactoring be done as a separate PR to make this PR smaller? |
@ookami-kb, here is just the |
@witwash ah, I thought you could do refactoring PR with extracting some "future"-common part as a pre-step. |
@ookami-kb, can you look at this one please? 🙏 |
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.
Minor comments, otherwise, LGTM.
optimus/lib/src/select_input.dart
Outdated
@@ -90,6 +92,14 @@ class OptimusSelectInput<T> extends StatefulWidget { | |||
/// {@endtemplate} | |||
final GroupBuilder? groupBuilder; | |||
|
|||
/// Whether to enable having several items selected at the same time. |
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 would rephrase it to something like
If
true
, you can select multiple items at the same time.
optimus/lib/src/select_input.dart
Outdated
@@ -90,6 +92,14 @@ class OptimusSelectInput<T> extends StatefulWidget { | |||
/// {@endtemplate} | |||
final GroupBuilder? groupBuilder; | |||
|
|||
/// Whether to enable having several items selected at the same time. | |||
/// State of the selected items is manages outside this widget and has to be |
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.
/// State of the selected items is manages outside this widget and has to be | |
/// State of the selected items is managed outside this widget and has to be |
bool get _isUsingInlineError => | ||
widget.errorVariant == OptimusInputErrorVariant.inlineTooltip; | ||
|
||
void _onStateUpdate() => setState(() {}); |
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.
_handleStateUpdate
Summary
multiselect
support for theOptimusSelectInput
OptimusSelectInput
Video
CleanShot.2023-10-09.at.22.49.57.mp4
Testing steps
Select Input
storymultiselect
Follow-up issues
Refactoring 🔧
Check during review