Further clarify Stack documentation on overflowing (#130776)
Fixes #75731
This commit is contained in:
parent
3d7f575233
commit
17b732bb6d
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user