Skip to content

Add a Positioned constructor from a Rect#422

Merged
abarth merged 1 commit intoflutter:masterfrom
abarth:from_rect
Nov 17, 2015
Merged

Add a Positioned constructor from a Rect#422
abarth merged 1 commit intoflutter:masterfrom
abarth:from_rect

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Nov 17, 2015

A common pattern is to use a Positioned with a Sized box to give both an offset
from the edge as well as a fixed size to the child. This patch rolls into into
the Stack layout algorithm for simplicity.

Fixes #250

A common pattern is to use a Positioned with a Sized box to give both an offset
from the edge as well as a fixed size to the child. This patch rolls into into
the Stack layout algorithm for simplicity.

Fixes flutter#250
@abarth
Copy link
Contributor Author

abarth commented Nov 17, 2015

@Hixie I'm not sure if this patch is what you had in mind...

@Hixie
Copy link
Contributor

Hixie commented Nov 17, 2015

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Positioned.fromPoints(topLeft: ..., bottomRight: ...)

2 participants