From 2acd61b1d4a53a0e34096f214b6b4fb3312986ed Mon Sep 17 00:00:00 2001 From: TheEthicalBoy <98978078+ndonkoHenri@users.noreply.github.com> Date: Thu, 12 Dec 2024 23:35:53 +0100 Subject: [PATCH] fix wrong attribute name (#4557) --- packages/flet/lib/src/controls/dismissible.dart | 2 +- sdk/python/packages/flet/src/flet/core/dismissible.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/flet/lib/src/controls/dismissible.dart b/packages/flet/lib/src/controls/dismissible.dart index ea156cf85..582e97e30 100644 --- a/packages/flet/lib/src/controls/dismissible.dart +++ b/packages/flet/lib/src/controls/dismissible.dart @@ -56,7 +56,7 @@ class _DismissibleControlState extends State { parseDismissThresholds(widget.control, "dismissThresholds"); DismissDirection direction = parseDismissDirection( - widget.control.attrString("direction"), DismissDirection.horizontal)!; + widget.control.attrString("dismissDirection"), DismissDirection.horizontal)!; widget.backend.subscribeMethods(widget.control.id, (methodName, args) async { diff --git a/sdk/python/packages/flet/src/flet/core/dismissible.py b/sdk/python/packages/flet/src/flet/core/dismissible.py index 2fb8b1e9c..53f64ac2d 100644 --- a/sdk/python/packages/flet/src/flet/core/dismissible.py +++ b/sdk/python/packages/flet/src/flet/core/dismissible.py @@ -19,7 +19,6 @@ RotateValue, ScaleValue, ) -from flet.utils import deprecated class Dismissible(ConstrainedControl, AdaptiveControl):