Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit e1c9e7d

Browse files
committed
fix: drodown button
1 parent c5cdd01 commit e1c9e7d

File tree

1 file changed

+27
-29
lines changed

1 file changed

+27
-29
lines changed

src/components/DropdownButton.tsx

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -132,38 +132,36 @@ export const DropdownButton = <
132132
h(
133133
<div ref={target}>
134134
{h(
135-
GestureDetector({
136-
child: Stack({
137-
children: [
138-
GestureDetector({
139-
child: SizedBox({
140-
child: Container({
141-
decoration: new BoxDecoration({
142-
boxShadow: elevation,
143-
}),
144-
child: Row({
145-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
146-
mainAxisSize: MainAxisSize.min,
147-
children: [
148-
TextField({ controller: textFieldController }),
149-
resolvedIcon,
150-
],
151-
}),
135+
Stack({
136+
children: [
137+
GestureDetector({
138+
child: SizedBox({
139+
child: Container({
140+
decoration: new BoxDecoration({
141+
boxShadow: elevation,
142+
}),
143+
child: Row({
144+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
145+
mainAxisSize: MainAxisSize.min,
146+
children: [
147+
TextField({ controller: textFieldController }),
148+
resolvedIcon,
149+
],
152150
}),
153-
height: EdgeInsetsStep.s10,
154151
}),
155-
onTap: () => {
156-
if (!isMenuOpened.value) {
157-
isMenuOpened.value = true
158-
}
159-
},
160-
}),
161-
Visibility({
162-
child: itemsDropdown,
163-
visible: isMenuOpened,
152+
height: EdgeInsetsStep.s10,
164153
}),
165-
],
166-
}),
154+
onTap: () => {
155+
if (!isMenuOpened.value) {
156+
isMenuOpened.value = true
157+
}
158+
},
159+
}),
160+
Visibility({
161+
child: itemsDropdown,
162+
visible: isMenuOpened,
163+
}),
164+
],
167165
})
168166
)}
169167
</div>

0 commit comments

Comments
 (0)