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):