From 706c85dd248b7aff987cdb1f82343f6586868092 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 6444d681f..baf4c13f1 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):