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

Added note to horizontal list recipe #9960

Merged
merged 2 commits into from
Dec 25, 2023
Merged

Conversation

atsansone
Copy link
Contributor

Fixes #9378

@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Dec 21, 2023

Visit the preview URL for this PR (updated for commit 0f6e3a2):

https://flutter-docs-prod--pr9960-fix-9378-j8kl9xll.web.app

@@ -47,6 +47,13 @@ ListView(

## Interactive example

{{site.alert.note}}
**Desktop and web only:** This example works in the browser and on the desktop. However, as it scrolls on the horizontal axis (left to right or right to left), hold <kbd>Shift</kbd> when hovering your mouse pointer over the list to scroll it.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I would specify <kbd>Shift</kbd> + scroll wheel on web or desktop. mouse click + drag scroll won't work unless we specify scrollbehavior per: https://docs.flutter.dev/release/breaking-changes/default-scroll-behavior-drag

Copy link
Contributor

Choose a reason for hiding this comment

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

Also:

  • Please use line breaks as this line is over 80 chars.
  • Use "site.alert.secondary", instead of "site.alert.note". The secondary macro uses "Desktop and web only" as the header.

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, aside from a couple changes.

@@ -47,6 +47,13 @@ ListView(

## Interactive example

{{site.alert.note}}
**Desktop and web only:** This example works in the browser and on the desktop. However, as it scrolls on the horizontal axis (left to right or right to left), hold <kbd>Shift</kbd> when hovering your mouse pointer over the list to scroll it.
Copy link
Contributor

Choose a reason for hiding this comment

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

Also:

  • Please use line breaks as this line is over 80 chars.
  • Use "site.alert.secondary", instead of "site.alert.note". The secondary macro uses "Desktop and web only" as the header.

@atsansone atsansone merged commit 0a0be16 into flutter:main Dec 25, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review.copy Awaiting Copy Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add note on drag scrolling with mouse to 'Create a horizontal list' page
4 participants