Skip to content

Commit c7121e3

Browse files
author
Sly
authored
Allow arguments to be passed onto Stack (#3009)
* 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
1 parent a77c84d commit c7121e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/python/packages/flet-core/src/flet_core/user_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class UserControl(Stack):
88
version="0.21.0",
99
delete_version="1.0",
1010
)
11-
def __init__(self):
12-
super().__init__()
11+
def __init__(self, *args, **kwargs):
12+
super().__init__(*args, **kwargs)
1313

1414
def build(self):
1515
pass

0 commit comments

Comments
 (0)