Skip to content

Commit 2ef244b

Browse files
committed
Enable RenderedLayoutModel for buttons and dropdowns.
1 parent c004226 commit 2ef244b

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/src/api/nodes/dropdown_node.dart

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,6 @@ class DropdownNode extends SceneNode with CustomPropertiesMixin {
6161
ObjectValue(name: 'value', value: value),
6262
];
6363

64-
@override
65-
BoxConstraintsModel internalConstraints({
66-
required SizeFit horizontalFit,
67-
required SizeFit verticalFit,
68-
}) {
69-
final double iconSize = properties.icon.size ?? 24;
70-
return super
71-
.internalConstraints(
72-
horizontalFit: horizontalFit,
73-
verticalFit: verticalFit,
74-
)
75-
.union(BoxConstraintsModel(minWidth: iconSize));
76-
}
77-
7864
/// Creates a [DropdownNode] from a JSON object.
7965
factory DropdownNode.fromJson(Map json) => _$DropdownNodeFromJson(json);
8066

0 commit comments

Comments
 (0)