You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
double dy = _showRect.top - menuHeight();
if (dy <= MediaQuery.of(context).padding.top + 10) {
// The have not enough space above, show menu under the widget.
dy = arrowHeight + _showRect.height + _showRect.top;
_isDown = false;
} else {
/// #######需要加上这行代码,修复三角形的高度
dy -= arrowHeight;
_isDown = true;
}
return Offset(dx, dy);
}
The text was updated successfully, but these errors were encountered:
fixed:
Offset _calculateOffset(BuildContext context) {
double dx = _showRect.left + _showRect.width / 2.0 - menuWidth() / 2.0;
if (dx < 10.0) {
dx = 10.0;
}
}
The text was updated successfully, but these errors were encountered: