We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd278eb + e2c7221 commit 75cd312Copy full SHA for 75cd312
packages/dropdown_button2/CHANGELOG.md
@@ -1,3 +1,7 @@
1
+## UNRELEASED
2
+
3
+- Fix dropdown menu position when window changes horizontally, closes #243.
4
5
## 3.0.0-beta.15
6
7
- Always call `onChanged` when tapping enabled item, closes #275.
packages/dropdown_button2/lib/src/dropdown_button2.dart
@@ -535,12 +535,7 @@ class _DropdownButton2State<T> extends State<DropdownButton2<T>>
535
if (_rect.value == null) {
536
return;
537
}
538
- final Rect newRect = _getRect();
539
- //This avoid unnecessary rebuilds if _rect position hasn't changed
540
- if (_rect.value!.top == newRect.top) {
541
- return;
542
- }
543
- _rect.value = newRect;
+ _rect.value = _getRect();
544
545
546
TextStyle? get _textStyle =>
0 commit comments