Skip to content

Add a Positioned constructor from a Rect - #422

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

abarth merged 1 commit into
flutter:masterfrom
abarth:from_rect

Conversation

@abarth

@abarth abarth commented Nov 17, 2015

Copy link
Copy Markdown
Contributor

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

abarth commented Nov 17, 2015

Copy link
Copy Markdown
Contributor Author

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

@Hixie

Hixie commented Nov 17, 2015

Copy link
Copy Markdown
Contributor

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