-
Notifications
You must be signed in to change notification settings - Fork 482
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
Cleanup #3406
Cleanup #3406
Conversation
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: 5 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
control.open = False | ||
base.update() | ||
control.update() |
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.
Shall we remove control from self.__offstage.controls
?
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.
We could eventually...
Any reason for that?
@@ -2210,6 +2181,8 @@ def banner(self) -> Optional[Banner]: | |||
@banner.setter | |||
def banner(self, value: Optional[Banner]): | |||
self.__banner = value | |||
if value is not None: | |||
self.__controls.append(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.
Shall we check that value
is already in self.__controls
?
...and I think deprecation notice should say "use page.open(banner)
instead of adding to overlay?
The same applies to other popups.
Co-authored-by: Feodor Fitsner <[email protected]>
* cleanup * TimePicker/DatePicker: deprecate pick_time * FlashLight: await coroutines * Usercontrol: deprecation well done * fix bugs * Cleanup * reformat * Page: type hint for *controls __update * Page: added open/close + deprecated open_* and close_* functions * update handler's typing * pass flutter 3.22.1 CI build * update deprecation delete_version * Review commit: replace overlay by __offstage.controls Co-authored-by: Feodor Fitsner <[email protected]> --------- Co-authored-by: Feodor Fitsner <[email protected]>
No description provided.