Unverified Commit 17b732bb authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Further clarify Stack documentation on overflowing (#130776)

Fixes #75731
parent 3d7f5752
......@@ -3914,11 +3914,13 @@ class Stack extends MultiChildRenderObjectWidget {
/// {@macro flutter.material.Material.clipBehavior}
///
/// Stacks only clip children whose geometry overflow the stack. A child that
/// paints outside its bounds (e.g. a box with a shadow) will not be clipped,
/// regardless of the value of this property. Similarly, a child that itself
/// has a descendant that overflows the stack will not be clipped, as only the
/// geometry of the stack's direct children are considered.
/// Stacks only clip children whose _geometry_ overflows the stack. A child
/// that paints outside its bounds (e.g. a box with a shadow) will not be
/// clipped, regardless of the value of this property. Similarly, a child that
/// itself has a descendant that overflows the stack will not be clipped, as
/// only the geometry of the stack's direct children are considered.
/// [Transform] is an example of a widget that can cause its children to paint
/// outside its geometry.
///
/// To clip children whose geometry does not overflow the stack, consider
/// using a [ClipRect] widget.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment