When passing layout constraints to its child, padding shrinks the constraints by the given padding, causing the child to layout at a smaller size . Padding then sizes itself to its child’s size, inflated by the padding, effectively creating empty space around the child.