Skip to content

Conversation

@feduke-nukem
Copy link

@feduke-nukem feduke-nukem commented Dec 9, 2023

close #106439

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@github-actions github-actions bot added the framework flutter/packages/flutter repository. See also f: labels. label Dec 9, 2023
}

void _animationStatusListener(AnimationStatus status) {
if (status == AnimationStatus.completed) {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Done


class _AnimatedSizeState
extends State<AnimatedSize> with SingleTickerProviderStateMixin {
extends State<AnimatedSize> with SingleTickerProviderStateMixin {
Copy link
Member

Choose a reason for hiding this comment

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

please undo this whitespace change

Copy link
Author

Choose a reason for hiding this comment

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

Done

),
);


Copy link
Member

Choose a reason for hiding this comment

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

nit: remove one of the blank lines

Copy link
Author

Choose a reason for hiding this comment

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

Done

});

testWidgetsWithLeakTracking('calls onEnd when animation is completed', (WidgetTester tester) async {
await tester.pumpWidget(
Copy link
Member

Choose a reason for hiding this comment

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

You can simplify this. remove the mockOnEndFunction stuff and just define an inline function here:

int callCount = 0;
void handleEnd() {
  callCount++;
}

and then just pass handleEnd wherever you need it

Copy link
Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 19, 2023
@auto-submit auto-submit bot merged commit 2bb19a9 into flutter:master Dec 19, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 20, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 20, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Dec 20, 2023
flutter/flutter@0eb7881...da0cd69

2023-12-20 [email protected] Revert automated changes made to deprecated settings.gradle (plugins.each)  (flutter/flutter#140037)
2023-12-20 [email protected] [github actions] change minimal example workflow to be manually dispatched (flutter/flutter#140435)
2023-12-20 [email protected] Make `TextSpan` hit testing precise. (flutter/flutter#139717)
2023-12-20 [email protected] [github actions] add minimal workflow to test token (flutter/flutter#140363)
2023-12-20 [email protected] Roll Flutter Engine from 5279873a8635 to c70f0a495ace (2 revisions) (flutter/flutter#140431)
2023-12-20 [email protected] Roll Flutter Engine from df1593e96a6b to 5279873a8635 (2 revisions) (flutter/flutter#140428)
2023-12-20 [email protected] [flutter_tools] handle FileSystemException trying to delete temp directory from core_devices.dart (flutter/flutter#140415)
2023-12-19 [email protected] Move hybrid_android_views_integration_test back to Moto G4 (flutter/flutter#140421)
2023-12-19 [email protected] Roll Flutter Engine from 3b156c8ce9bd to df1593e96a6b (2 revisions) (flutter/flutter#140422)
2023-12-19 [email protected] Added onEnd callback into AnimatedSize (flutter/flutter#139859)
2023-12-19 [email protected] Roll Flutter Engine from 3f45f9db4471 to 3b156c8ce9bd (1 revision) (flutter/flutter#140413)
2023-12-19 [email protected] Roll Flutter Engine from 187334c39b44 to 3f45f9db4471 (3 revisions) (flutter/flutter#140412)
2023-12-19 [email protected] Remove workarounds for `plugin_lint_mac` needed for older version of Cocoapods (flutter/flutter#140395)
2023-12-19 [email protected] Roll Flutter Engine from b87a782ce3a3 to 187334c39b44 (2 revisions) (flutter/flutter#140398)
2023-12-19 [email protected] Roll Flutter Engine from 1d5a141917fa to b87a782ce3a3 (1 revision) (flutter/flutter#140390)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@XilaiZhang XilaiZhang added cp: beta cherry pick this pull request to beta release candidate branch and removed cp: beta cherry pick this pull request to beta release candidate branch labels Dec 21, 2023
CoderDake pushed a commit to CoderDake/flutter that referenced this pull request Dec 28, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add VoidCallback to AnimatedSize (Similar to AnimatedOpacity's onEnd)

4 participants