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: add focus indicator to ShadSlider #205

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

helightdev
Copy link
Contributor

Fixes/Implements #204

@@ -79,6 +79,8 @@ class _ShadSliderState extends State<ShadSlider> {
initialValue: widget.initialValue!,
);

bool isFocused = false;
Copy link
Owner

Choose a reason for hiding this comment

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

Remove, not needed

isFocused = focused;
});
},
skipTraversal: true,
Copy link
Owner

Choose a reason for hiding this comment

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

Don't use the Focus widget, use the ShadFocusable instead. No need to use setState.
Pass the widget.focusNode to it, and in the builder you get the focused value.
Merge the new main to have all the properties like skipTraversal

Copy link
Owner

@nank1ro nank1ro left a comment

Choose a reason for hiding this comment

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

Update the comment of the PR just using closes or fixes so github know that the issue will be closed when this PR is merged

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