-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Pesto logo now smoothly animates between image and image+text states. #5890
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tween<double>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.5*extraPadding -> 1.5 * extraPadding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. Much easier to read!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been putting spaces in expressions like this, 1.5 * extraPadding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll want a dispose override that _textController.dispose()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could Positioned.fromRect() here, with a Rect constant parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is slick and I'm looking forward to seeing it.
I think it would be a little cleaner to create a Rect animation, like new RectTween(...).animate(_textController) and use it with an AnimatedBuilder below. And maybe call _textController just _controller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you could use new Positioned.fromRect(rect: _imageRectAnimation.value) here
|
Ready for another look. |
HansMuller
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs one small fix. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The super.dispose() call should be last
72a38a6 Build Android engine in presubmit using Cirrus and GCE (flutter#5882) f9f40ba Log uncaught exceptions from JNI calls at a higher priority (flutter#5891) 723b278 Update license script README (flutter#5890) 9420da1 Roll src/third_party/skia 9acfc6cac2c6..227424b57d28 (10 commits) (flutter#5888) 27c9de5 Roll src/third_party/skia 55b1e6168454..9acfc6cac2c6 (1 commits) (flutter#5887) 8b8c52e Roll src/third_party/skia b935cf8e12d7..55b1e6168454 (1 commits) (flutter#5886) 89602cc [scenic] Expose compositor context from rasterizer. (flutter#5739) 9baeb9c Roll src/third_party/skia 5f1dc76d0cec..b935cf8e12d7 (1 commits) (flutter#5885)
72a38a6 Build Android engine in presubmit using Cirrus and GCE (#5882) f9f40ba Log uncaught exceptions from JNI calls at a higher priority (#5891) 723b278 Update license script README (#5890) 9420da1 Roll src/third_party/skia 9acfc6cac2c6..227424b57d28 (10 commits) (#5888) 27c9de5 Roll src/third_party/skia 55b1e6168454..9acfc6cac2c6 (1 commits) (#5887) 8b8c52e Roll src/third_party/skia b935cf8e12d7..55b1e6168454 (1 commits) (#5886) 89602cc [scenic] Expose compositor context from rasterizer. (#5739) 9baeb9c Roll src/third_party/skia 5f1dc76d0cec..b935cf8e12d7 (1 commits) (#5885)
Fixes #5684