Skip to content

Commit fcba7b3

Browse files
authored
Fix SliverList example descriptions (flutter#134483)
Fixes flutter#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.
1 parent 3e1e869 commit fcba7b3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/flutter/lib/src/widgets/sliver.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
177177
/// [SliverChildBuilderDelegate.addSemanticIndexes] property.
178178
///
179179
/// {@tool snippet}
180-
/// This example, which would be inserted into a [CustomScrollView.slivers]
181-
/// list, shows an infinite number of items in varying shades of blue:
180+
/// This example, which would be provided in [CustomScrollView.slivers],
181+
/// shows an infinite number of items in varying shades of blue:
182182
///
183183
/// ```dart
184184
/// SliverList.builder(
@@ -236,10 +236,11 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
236236
/// [SliverChildBuilderDelegate.addRepaintBoundaries] property. The
237237
/// `addSemanticIndexes` argument corresponds to the
238238
/// [SliverChildBuilderDelegate.addSemanticIndexes] property.
239-
/// {@tool snippet}
240239
///
240+
/// {@tool snippet}
241241
/// This example shows how to create a [SliverList] whose [Container] items
242-
/// are separated by [Divider]s.
242+
/// are separated by [Divider]s. The [SliverList] would be provided in
243+
/// [CustomScrollView.slivers].
243244
///
244245
/// ```dart
245246
/// SliverList.separated(
@@ -303,8 +304,8 @@ class SliverList extends SliverMultiBoxAdaptorWidget {
303304
/// [SliverChildBuilderDelegate.addSemanticIndexes] property.
304305
///
305306
/// {@tool snippet}
306-
/// This example, which would be inserted into a [CustomScrollView.slivers]
307-
/// list, shows an infinite number of items in varying shades of blue:
307+
/// This example, which would be provided in [CustomScrollView.slivers],
308+
/// shows a list containing two [Text] widgets:
308309
///
309310
/// ```dart
310311
/// SliverList.list(

0 commit comments

Comments
 (0)