-
Notifications
You must be signed in to change notification settings - Fork 446
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
Flet v0.23 Post Fixes - Part 2 #3507
Conversation
Reviewer's Guide by SourceryThis pull request includes two main changes: updating the default value logic for the 'value' property in the slider component and adding new event types ('HIDE' and 'SHOW') to the 'WindowEventType' enum. The slider's 'value' property now defaults to 'self.min' or 0, ensuring it respects the minimum value set. The 'WindowEventType' enum has been extended to support additional window events, enhancing the event handling capabilities. File-Level Changes
Tips
|
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.
Hey @ndonkoHenri - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
…_update method - Corrected isinstance check in SnackBar.before_update to use a tuple of types instead of Union, resolving TypeError: "Subscripted generics cannot be used with class and instance checks".
* Fix flet-dev#3503: `Slider.value` defaults to `min` * Fix flet-dev#3505: add "hide" and "show" to WindowEventType enum * Fix flet-dev#3499: TypeError raised for isinstance check with Union in before_update method - Corrected isinstance check in SnackBar.before_update to use a tuple of types instead of Union, resolving TypeError: "Subscripted generics cannot be used with class and instance checks". * Fix `Page.open()` breaking after multiple calls * Fix flet-dev#3516: delete Page.window.on_resize | deprecate Page.on_resize in favor of Page.on_resized * Page: Typo in on_resized setter decorator
Summary by Sourcery
This pull request addresses a bug fix for the slider component's default value handling and enhances the WindowEventType enumeration by adding 'hide' and 'show' event types.