Skip to content

Conversation

Mairramer
Copy link
Contributor

@Mairramer Mairramer commented Aug 21, 2024

Fixes #153889 an issue where nodes were being removed incorrectly when using AnimationStyle.noAnimation or the animation duration was zero seconds, which previously caused the erratic behavior due to hidden state updates. Similar to flutter/flutter#153890.

  • 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.
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.
    If you need help, consider asking for advice on the #hackers-new channel on Discord.

@Mairramer Mairramer requested a review from Piinks as a code owner August 21, 2024 23:07
@Piinks Piinks changed the title Fix a bug when animation duration is zero [two_dimensional_scrollables] Fix TreeView bug when animation duration is zero Aug 22, 2024
@Piinks Piinks added the p: two_dimensional_scrollables Issues pertaining to the two_dimensional_scrollables package label Aug 22, 2024
@Mairramer Mairramer requested a review from Piinks August 28, 2024 12:58
Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

We should have an issue specific to this. Can you check https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22p%3A+two_dimensional_scrollables%22 and see if one exists? The other issue is for the 1D version in the framework.

@Mairramer Mairramer requested a review from Piinks August 30, 2024 11:37
Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the contribution!

Copy link
Contributor

@QuncCccccc QuncCccccc left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the contribution:)

@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 11, 2024
@auto-submit auto-submit bot merged commit 91caa7a into flutter:main Sep 11, 2024
76 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 12, 2024
flutter/packages@4c18648...91caa7a

2024-09-11 [email protected] [two_dimensional_scrollables] Fix TreeView bug when animation duration is zero (flutter/packages#7475)
2024-09-11 [email protected] [google_maps_flutter_platform_interface] Fix typo in CameraUpdateNewLatLngBounds.toJson (flutter/packages#7626)

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-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: 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
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 p: two_dimensional_scrollables Issues pertaining to the two_dimensional_scrollables package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[two_dimensional_scrollables] - TreeViewNode collapse with animation duration zero has erratic behavior
3 participants