Skip to content

Update documentation to be clearer about how Stack only clips children whose _size_ overflows the stack, it doesn't matter if they paint outside the stack #40216

@ukomiljon

Description

@ukomiljon

After appling scale, it ignores overflow.clip on Stack Widget.
It becomes overflow.visible always. I think it must be inside of parent, when it is overflow.clip.
if scale is 1, it works; overflow.clip is accepted.
But if scale is more than 1, it does not work.

AnyParent Widget(
child:
Transform.scale(
                            scale: 2, 
                            child: Stack(
                              overflow: Overflow.clip,
                              children: <Widget>[
                                Positioned(
                                  left: 220,
                                  top: 200,
                                  child: FlutterLogo(),
                ), 
          ],
     ),
  ),
)

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework teamwaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions