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 { ...@@ -177,8 +177,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// [SliverChildBuilderDelegate.addSemanticIndexes] property. /// [SliverChildBuilderDelegate.addSemanticIndexes] property.
/// ///
/// {@tool snippet} /// {@tool snippet}
/// This example, which would be inserted into a [CustomScrollView.slivers] /// This example, which would be provided in [CustomScrollView.slivers],
/// list, shows an infinite number of items in varying shades of blue: /// shows an infinite number of items in varying shades of blue:
/// ///
/// ```dart /// ```dart
/// SliverList.builder( /// SliverList.builder(
...@@ -236,10 +236,11 @@ class SliverList extends SliverMultiBoxAdaptorWidget { ...@@ -236,10 +236,11 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// [SliverChildBuilderDelegate.addRepaintBoundaries] property. The /// [SliverChildBuilderDelegate.addRepaintBoundaries] property. The
/// `addSemanticIndexes` argument corresponds to the /// `addSemanticIndexes` argument corresponds to the
/// [SliverChildBuilderDelegate.addSemanticIndexes] property. /// [SliverChildBuilderDelegate.addSemanticIndexes] property.
/// {@tool snippet}
/// ///
/// {@tool snippet}
/// This example shows how to create a [SliverList] whose [Container] items /// 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 /// ```dart
/// SliverList.separated( /// SliverList.separated(
...@@ -303,8 +304,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget { ...@@ -303,8 +304,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
/// [SliverChildBuilderDelegate.addSemanticIndexes] property. /// [SliverChildBuilderDelegate.addSemanticIndexes] property.
/// ///
/// {@tool snippet} /// {@tool snippet}
/// This example, which would be inserted into a [CustomScrollView.slivers] /// This example, which would be provided in [CustomScrollView.slivers],
/// list, shows an infinite number of items in varying shades of blue: /// shows a list containing two [Text] widgets:
/// ///
/// ```dart /// ```dart
/// SliverList.list( /// 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