Skip to content

Drag gestures migration guide - #5771

Merged
sfshaza2 merged 5 commits into
flutter:masterfrom
Piinks:dragMigrationGuide
Jun 3, 2021
Merged

sfshaza2 merged 5 commits into
flutter:masterfrom
Piinks:dragMigrationGuide

Conversation

@Piinks

@Piinks Piinks commented May 11, 2021

Copy link
Copy Markdown
Contributor

This adds a migration guide for the new ScrollBehavior.dragDevices and deprecated GestureDetector.kind

@google-cla google-cla Bot added the cla: yes Contributor has signed the Contributor License Agreement label May 11, 2021
@Piinks
Piinks requested review from jonahwilliams and sfshaza2 May 11, 2021 21:50

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Other than a minor nit, LGTM. But we don't have info on where this has landed?

@Piinks

Piinks commented May 11, 2021

Copy link
Copy Markdown
Contributor Author

Thanks @sfshaza2! It's rolled in, but it has not gotten a build tag yet. I'm ok to wait for the tag and keep an eye on it. I'll update once I have a version #. :)

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@sfshaza2

Copy link
Copy Markdown
Contributor

@Piinks, would you mind merging the conflicts? I am a bit sleep deprived at the moment.

@domesticmouse

Copy link
Copy Markdown
Contributor

@Piinks & @sfshaza2 is this ready to land now?

@creativecreatorormaybenot creativecreatorormaybenot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I feel like this guide is not really addressing how to migrate an app on a high-level, i.e. this is a breaking change and how do we best deal with it for whole apps?

Let's say, we have many horizontal scroll views in an app. What should be done in the migration process then? I would think it would benefit to address this choice.

  1. Not doing anything is not an option because it will break for many users.
  2. Should we override the MaterialApp scroll behavior to allow touch drag devices everywhere? If so, we lose all benefit of this change.
  3. Should we add the touch drag device for every horizontal scroll view?
  • Potentially useful as well: why is the touch drag device not allowed for horizontal scroll views by default.

After coming back to this, I am not sure at all how this could be done :/ Maybe just take this as a "feeling" instead of actionable feedback.

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This can't be published until a release version number is entered under "Timeline" and "Landed in version".

@Piinks

Piinks commented Jun 3, 2021

Copy link
Copy Markdown
Contributor Author

@sfshaza2 I have updated now that this has a build tag. :) 🚀

@Piinks
Piinks requested a review from sfshaza2 June 3, 2021 19:41

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@sfshaza2
sfshaza2 merged commit ba1e7a2 into flutter:master Jun 3, 2021
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.

5 participants