Skip to content

Add scroll anchor for Block - #1736

Merged
abarth merged 1 commit into
flutter:masterfrom
abarth:scroll_anchor3
Feb 9, 2016
Merged

abarth merged 1 commit into
flutter:masterfrom
abarth:scroll_anchor3

Conversation

@abarth

@abarth abarth commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

This patch teaches block how to anchor its scrolling to the end rather than the
start.

Fixes #136

@abarth

abarth commented Feb 9, 2016

Copy link
Copy Markdown
Contributor Author

@Hixie

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert that at least one of the axes has the same dimension in the content and container

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and add a comment saying that if we ever change that, ViewportAnchor needs to deal with more than "start" and "end", since there's many places you could try to anchor to (e.g. center bottom, top right, etc)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

markNeedsSemanticsUpdate();

@Hixie

Hixie commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

lgtm

This patch teaches block how to anchor its scrolling to the end rather than the
start.

Fixes flutter#136
abarth added a commit that referenced this pull request Feb 9, 2016
@abarth
abarth merged commit efd5aea into flutter:master Feb 9, 2016
@abarth
abarth deleted the scroll_anchor3 branch February 9, 2016 23:23
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 16, 2021
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.

Scrollable Blocks should have gravity.

2 participants