marginGap property
EdgeInsets
get
marginGap
dropdown border width + shadow max blur radius plus max spread radius to show shadow
Implementation
EdgeInsets get marginGap => animationType == DropdownAnimationType.size
? EdgeInsets.only(
top: borderSide.width * 0.5 + shadowMaxBlurRadiusPlusMaxSpreadRadius,
bottom:
borderSide.width * 0.5 + shadowMaxBlurRadiusPlusMaxSpreadRadius,
left: borderSide.width * 0.5 + shadowMaxBlurRadiusPlusMaxSpreadRadius,
right:
borderSide.width * 0.5 + shadowMaxBlurRadiusPlusMaxSpreadRadius,
)
: EdgeInsets.zero;