From fcba7b3dc27eb87f573d82b53448250143845f41 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Tue, 12 Sep 2023 17:38:23 -0500 Subject: [PATCH] Fix SliverList example descriptions (#134483) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/flutter/lib/src/widgets/sliver.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/flutter/lib/src/widgets/sliver.dart b/packages/flutter/lib/src/widgets/sliver.dart index f5240dd7b73..65ce9e48d76 100644 --- a/packages/flutter/lib/src/widgets/sliver.dart +++ b/packages/flutter/lib/src/widgets/sliver.dart @@ -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(