Unverified Commit fcba7b3d authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Fix SliverList example descriptions (#134483)

Fixes https://github.com/flutter/flutter/issues/134142

The description for the SliverList.list example was just wrong, describing something other than the sample. 🙃 
Tweaked some of the language on the others while I was here.
parent 3e1e869a
......@@ -177,8 +177,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// [SliverChildBuilderDelegate.addSemanticIndexes] property.
///
/// {@tool snippet}
/// This example, which would be inserted into a [CustomScrollView.slivers]
/// list, shows an infinite number of items in varying shades of blue:
/// This example, which would be provided in [CustomScrollView.slivers],
/// shows an infinite number of items in varying shades of blue:
///
/// ```dart
/// SliverList.builder(
......@@ -236,10 +236,11 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// [SliverChildBuilderDelegate.addRepaintBoundaries] property. The
/// `addSemanticIndexes` argument corresponds to the
/// [SliverChildBuilderDelegate.addSemanticIndexes] property.
/// {@tool snippet}
///
/// {@tool snippet}
/// This example shows how to create a [SliverList] whose [Container] items
/// are separated by [Divider]s.
/// are separated by [Divider]s. The [SliverList] would be provided in
/// [CustomScrollView.slivers].
///
/// ```dart
/// SliverList.separated(
......@@ -303,8 +304,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// [SliverChildBuilderDelegate.addSemanticIndexes] property.
///
/// {@tool snippet}
/// This example, which would be inserted into a [CustomScrollView.slivers]
/// list, shows an infinite number of items in varying shades of blue:
/// This example, which would be provided in [CustomScrollView.slivers],
/// shows a list containing two [Text] widgets:
///
/// ```dart
/// SliverList.list(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment