mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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.
This commit is contained in:
parent
3e1e869a54
commit
fcba7b3dc2
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user