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

Cleanup #3406

Merged
merged 14 commits into from
Jun 10, 2024
Merged

Cleanup #3406

merged 14 commits into from
Jun 10, 2024

Conversation

ndonkoHenri
Copy link
Contributor

No description provided.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a 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

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
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()
Copy link
Contributor

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?

Copy link
Contributor Author

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)
Copy link
Contributor

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.

@FeodorFitsner FeodorFitsner merged commit 2d64dbc into main Jun 10, 2024
2 checks passed
@FeodorFitsner FeodorFitsner deleted the cleanup branch June 12, 2024 04:40
zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024
* 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]>
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