if you have border of child widget then you should apply borderRadius
final BorderRadius? borderRadius;