Skip to content

Commit

Permalink
Added note to horizontal list recipe (flutter#9960)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsansone committed Dec 25, 2023
1 parent 5562114 commit 0a0be16
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/cookbook/lists/horizontal-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ ListView(

## Interactive example

{{site.alert.secondary}}
**Desktop and web only:**
This example works in the browser and on the desktop.
However, as this list scrolls on the horizontal axis
(left to right or right to left),
hold <kbd>Shift</kbd> while using the mouse scroll wheel to scroll the list.

To learn more, read the [breaking change][] page on the
default drag for scrolling devices.
{{site.alert.end}}

<?code-excerpt "lib/main.dart"?>
```run-dartpad:theme-light:mode-flutter:run-true:width-100%:height-600px:split-60:ga_id-interactive_example
import 'package:flutter/material.dart';
Expand Down Expand Up @@ -106,5 +117,5 @@ class MyApp extends StatelessWidget {
<img src="/assets/images/docs/cookbook/horizontal-list.gif" alt="Horizontal List Demo" class="site-mobile-screenshot" />
</noscript>


[breaking change]: {{site.url}}/release/breaking-changes/default-scroll-behavior-drag
[`ListView`]: {{site.api}}/flutter/widgets/ListView-class.html

0 comments on commit 0a0be16

Please sign in to comment.