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

[ReorderableListView] Fix item dropping animation #64140

Merged
merged 3 commits into from
Oct 8, 2020

Conversation

nero-angela
Copy link
Contributor

@nero-angela nero-angela commented Aug 19, 2020

Description

When dropping an item in the ReorderableListView, a space flashes at the top of the dropping item.

Below is a video of lifting and dropping an item in ReorderableListView. In the left video, when dropping an item you can see the space between B and C at the moment.

before after
before after

Related Issues

  • N/A

Tests

I added the following tests:

  • Animation test when placing an item in place.

Checklist

Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read Handling breaking changes.

  • No, no existing tests failed, so this is not a breaking change.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Aug 19, 2020
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Piinks Piinks added a: animation Animation APIs f: scrolling Viewports, list views, slivers, etc. labels Aug 27, 2020
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.

Hey @nero-angela welcome and thanks for the contribution! Can you write a test to verify that your change works? That will also make sure it is not un-done in the future.

@nero-angela
Copy link
Contributor Author

@Piinks I've applied your review. thank you 👏

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.

This LGTM! Thank you for adding a test! 🎉

@Piinks
Copy link
Contributor

Piinks commented Oct 8, 2020

Hey @nero-angela I just noticed this was still open with a test failure. I have checked, and it was a flake. I'm setting it to pass and we should be able to get this merged! Thanks again!

@fluttergithubbot fluttergithubbot merged commit e0c0321 into flutter:master Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: animation Animation APIs f: material design flutter/packages/flutter/material repository. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants