Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zoomable timeline grid and timestamps to flame chart. #1624

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

kenzieschmoll
Copy link
Member

Screen Shot 2020-02-12 at 1 24 47 PM

Screen Shot 2020-02-12 at 1 25 24 PM

@kenzieschmoll
Copy link
Member Author

Partially addresses #1289.

)..layout(maxWidth: intervalWidth);

// TODO(kenz): figure out a way for the timestamps to scroll out of view
// smoothly instead of dropping off.
Copy link
Contributor

Choose a reason for hiding this comment

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

if you use a horizontal ListView for the timestamps and use Text widgets you would get that for free. It may be a bit more performant as well as it might do a better job of caching text rendering

Copy link
Member Author

Choose a reason for hiding this comment

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

added a this to the TODO since it may take a bit of refactoring where we calculate intervals and such. It also may be kind of tricky because we would have to inject new widgets into the list when we split each interval into two new intervals (when log2(zoom) increases).

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

done with the first round of comments

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

@kenzieschmoll kenzieschmoll merged commit 8dd6f06 into flutter:master Feb 12, 2020
@kenzieschmoll kenzieschmoll deleted the timelineGrid branch February 12, 2020 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants