Skip to content

Commit 782133d

Browse files
ndonkoHenrisyleishere
authored andcommitted
fix wrong attribute name (#4557)
1 parent ec2f76c commit 782133d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/flet/lib/src/controls/dismissible.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class _DismissibleControlState extends State<DismissibleControl> {
5656
parseDismissThresholds(widget.control, "dismissThresholds");
5757

5858
DismissDirection direction = parseDismissDirection(
59-
widget.control.attrString("direction"), DismissDirection.horizontal)!;
59+
widget.control.attrString("dismissDirection"), DismissDirection.horizontal)!;
6060

6161
widget.backend.subscribeMethods(widget.control.id,
6262
(methodName, args) async {

sdk/python/packages/flet/src/flet/core/dismissible.py

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
RotateValue,
2020
ScaleValue,
2121
)
22-
from flet.utils import deprecated
2322

2423

2524
class Dismissible(ConstrainedControl, AdaptiveControl):

0 commit comments

Comments
 (0)