We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd278eb commit 58501abCopy full SHA for 58501ab
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