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

Animation tutorial: create full example apps and use code excerpter #2320

Merged
merged 10 commits into from
Jan 31, 2019

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Jan 31, 2019

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.)

@googlebot googlebot added the cla: yes Contributor has signed the Contributor License Agreement label Jan 31, 2019
@chalin chalin force-pushed the chalin-animation-tutorial-0130 branch from 6522056 to 30ba84a Compare January 31, 2019 02:11
class ShakeCurve extends Curve {
@override
double transform(double t) {
return math.sin(t * math.PI * 2);
Copy link
Contributor Author

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 :)

@filiph
Copy link
Contributor

filiph commented Jan 31, 2019

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.

@chalin
Copy link
Contributor Author

chalin commented Jan 31, 2019

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.
Copy link
Contributor Author

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.

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

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

LGTM

@chalin chalin merged commit 175b508 into master Jan 31, 2019
@chalin chalin deleted the chalin-animation-tutorial-0130 branch January 31, 2019 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Contributor has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants