Results for “ListView”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
- Layout and constraints3.47.7layout
Flutter lays out the tree in one pass: every parent hands its
- Common Flutter errors and how to fix them3.47.7widgets
given unbounded height' and 'An InputDecorator ... cannot have an unbounded width': a ListView inside a Column, or a TextField inside a Row, with nothing bounding the main
- Performance3.47.7performance
long lists eagerly (ListView(children: [...]) or a Column with thousands of children); ListView.builder builds only what is visible, and itemExtent/prototypeItem let the scroll machinery skip layout work
Guides
- Work with long listsdoc
ListView.builder to implement a long or infinite list. The standard ListView constructor works well for small lists. To work with lists that contain a large number
- Layouts in Flutterdoc
Learn how Flutter's layout mechanism works and how to build your
- Use listsdoc
lists of data is a fundamental pattern for mobile apps. Flutter includes the ListView widget to make working with lists a breeze. Create a ListView Using
- Common Flutter errorsdoc
How to recognize and resolve common Flutter framework errors. Introduction This page
- Send data to a new screendoc
todos. In this example, generate 20 todos and show them using a ListView. For more information on working with lists, see the Use lists recipe. Generate
- Understanding constraintsdoc
Flutter's model for widget constraints, sizing, positioning, and how they interact
- DevToolsdoc
Learn to use the Dart DevTools when developing Flutter apps. Learn to
- Scrollingdoc
This provides a much more performant scrolling experience. For more information, check out ListView.builder or GridView.builder . Specialized scrollable widgets The following widgets provide more specific scrolling behavior
- Add interactivity to your Flutter appdoc
How to implement a stateful widget that responds to taps. How to
- Performance best practicesdoc
How to ensure that your Flutter app is performant. Generally, Flutter applications
- Create lists with different types of itemsdoc
list of widgets To convert each item into a widget, use the ListView.builder() constructor. In general, provide a builder function that checks
- Improving rendering performancedoc
performance data . Building a large list of children directly, rather than using a ListView. For more information on evaluating performance including information on common pitfalls
- Find widgetsdoc
How to use the Finder classes for testing widgets. To locate widgets
- Taps, drags, and other gesturesdoc
How gestures, such as taps and drags, work in Flutter. This document
API reference
- ListViewclass
scrollable list of widgets arranged linearly. widgets.ListView ListView List View class widgets
- ListView.builderconstructor
Creates a scrollable, linear array of widgets that are created on demand. widgets.ListView.ListView.builder ListView builder List View.builder constructor widgets
- ListView.newconstructor
Creates a scrollable, linear array of widgets from an explicit List. widgets.ListView.ListView.new ListView new List View.new constructor widgets
- ListView.customconstructor
Creates a scrollable, linear array of widgets with a custom child model. widgets.ListView.ListView.custom ListView custom List View.custom constructor widgets
- ListView.separatedconstructor
length scrollable linear array of list "items" separated by list item "separators". widgets.ListView.ListView.separated ListView separated List View.separated constructor widgets
Version changes
- Deprecate findChildIndexCallback in favor of findItemIndexCallback in ListView and SliverList separated constructors3.41.0deprecated
findChildIndexCallback` parameter in `ListView.separated` and `SliverList.separated` constructors have been deprecated in favor of `findItemIndexCallback`. The new callback returns item indices directly, eliminating the need for manual index calculations
- - ImageFilter in ListView causes wrong offset on Android and iOS3.7.1bugfix
ImageFilter in ListView causes wrong offset on Android
- - Fixes scrolling jank on Android and iOS when a `SelectionArea`/`SelectableRegion` is used as a child of a Scrollable like `ListView`...3.24.2bugfix
when a `SelectionArea`/`SelectableRegion` is used as a child of a Scrollable like `ListView` or `PageView
- Fix Drawer.child docstring to say ListView instead of SliverList3.41.0bugfix
Drawer.child docstring to say ListView instead of SliverList (Material, by @nathannewyen). ListView SliverList
- Default PrimaryScrollController on Desktop3.3.0breaking
builder: (context, constraints) { return Row( children: [ SizedBox( height: constraints.maxHeight, width: constraints.maxWidth / 2, child: ListView.builder( itemBuilder: (BuildContext context, int index) { return Text
- fix: findChildIndexCallback to take seperators into account for seperated named constructor in ListView and SliverList3.41.0bugfix
findChildIndexCallback to take seperators into account for seperated named constructor in ListView and SliverList (Framework, by @rkishan516). ListView SliverList
- Deprecated cacheExtent and cacheExtentStyle3.44.0deprecated
Flutter 3.44 deprecates `cacheExtent` and `cacheExtentStyle` in scrolling-related widgets, such as `ListView`, `GridView`, `CustomScrollView`, and `Viewport`, and their corresponding render objects, such as `RenderViewport
- Default Scrollbars on Desktop2.2.0breaking
desktop Code before migration: ```dart final ScrollController controller = ScrollController(); Scrollbar( controller: controller, child: ListView.builder( controller: controller, itemBuilder: (BuildContext context, int index) { return Text('Item $index'); } ) ); ``` Code after migration
- Default multitouch scrolling3.19.0breaking
ScrollBehavior` for a specific widget Code before migration: ```dart final ScrollController controller = ScrollController(); ListView.builder( controller: controller, itemBuilder: (BuildContext context, int index) { return Text('Item $index'); }, ); ``` Code after migration
- Default drag scrolling devices2.5.0breaking
ScrollBehavior` for a specific widget Code before migration: ```dart final ScrollController controller = ScrollController(); ListView.builder( controller: controller, itemBuilder: (BuildContext context, int index) { return Text('Item $inde
- Accessibility traversal order of tooltip changed3.19.0breaking
test: ```dart Directionality( textDirection: TextDirection.ltr, child: Overlay( initialEntries: [ OverlayEntry( builder: (BuildContext context) { return ListView( children: [ const Text('before'), Tooltip( key: tooltipKey, showDuration: const Duration(days: 365), message