Skip to content

Commit

Permalink
Allow arguments to be passed onto Stack (#3009)
Browse files Browse the repository at this point in the history
* Allow arguments to be passed onto Stack

Fixes the issue where passing arguments to UserControl no longer propagates into Stack subclassing

* Added args for full compatibility

To avoid breaking old functionality of coorded arguments in Stack as well
  • Loading branch information
Sly authored Apr 10, 2024
1 parent a77c84d commit c7121e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/packages/flet-core/src/flet_core/user_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class UserControl(Stack):
version="0.21.0",
delete_version="1.0",
)
def __init__(self):
super().__init__()
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

def build(self):
pass
Expand Down

0 comments on commit c7121e3

Please sign in to comment.