Skip to content
masterclass Buddy

Flutter & Dart · Component

ListView

ListView is a scrollable widget that arranges children in a line. Use ListView.builder for large or unbounded data because it creates children only when needed.

Last updated

Syntax

ListView({
  Axis scrollDirection = Axis.vertical,
  bool reverse = false,
  ScrollController? controller,
  bool shrinkWrap = false,
  EdgeInsetsGeometry? padding,
  double? itemExtent,
  Widget? prototypeItem,
  List<Widget> children = const <Widget>[],
})

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ListView.builder
  • ListView.separated
  • ListView.custom
  • CustomScrollView
  • SliverList
  • SliverFixedExtentList
  • SliverPrototypeExtentList
  • SliverChildDelegate

Source: ListView class - widgets library - Dart API. Checked 2026-11-03.