From c7121e3782d257ac5deccf793f57cf40e5413c89 Mon Sep 17 00:00:00 2001 From: Sly Date: Wed, 10 Apr 2024 04:05:29 +0000 Subject: [PATCH] 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 --- sdk/python/packages/flet-core/src/flet_core/user_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/python/packages/flet-core/src/flet_core/user_control.py b/sdk/python/packages/flet-core/src/flet_core/user_control.py index e95b9ba34..24ed88b94 100644 --- a/sdk/python/packages/flet-core/src/flet_core/user_control.py +++ b/sdk/python/packages/flet-core/src/flet_core/user_control.py @@ -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