-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Animation tutorial: create full example apps and use code excerpter #2320
Conversation
6522056
to
30ba84a
Compare
class ShakeCurve extends Curve { | ||
@override | ||
double transform(double t) { | ||
return math.sin(t * math.PI * 2); |
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.
Note that the old code still used the Dart 1 math PI
constant! (This is why it's good to have automated code extraction :)
Ouch, thanks for fixing this! LGTM, although I did not fully review the code — let me know if you expect me to, and/or direct me to the important parts. |
There are no major (functional) changes to the code, so we should be good. |
values. | ||
|
||
`LogoApp` widget was changed to encapsulate its own `Tween` objects. |
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.
Here is the part of the prose where it mismatches with the code. It's not the LogoApp
that's impacted, its the AnimatedLogo
class.
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.
LGTM
Fixes #2319
Contributes to #2233, #2279
Staged at https://flutter-io-staging-1.firebaseapp.com/docs/development/ui/animations/tutorial
(The indentation of code excerpts is off in a few cases. I'll file an issue over the code excerpter / code-excerpt renderer tool to address this.)