Skip to content

Commit 6f19403

Browse files
authored
Replace ListTile usage with CupertinoListTile (#154473)
This PR replaces the `ListTile` usage in the cupertino switch example with `CupertinoListTile`. Fixes #154450
1 parent 7abeeb1 commit 6f19403

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/flutter/lib/src/cupertino/switch.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ const CupertinoDynamicColor _kOffLabelColor = CupertinoDynamicColor.withBrightne
8080
///
8181
/// {@tool snippet}
8282
///
83-
/// This sample shows how to use a [CupertinoSwitch] in a [ListTile]. The
84-
/// [MergeSemantics] is used to turn the entire [ListTile] into a single item
83+
/// This sample shows how to use a [CupertinoSwitch] in a [CupertinoListTile]. The
84+
/// [MergeSemantics] is used to turn the entire [CupertinoListTile] into a single item
8585
/// for accessibility tools.
8686
///
8787
/// ```dart
8888
/// MergeSemantics(
89-
/// child: ListTile(
89+
/// child: CupertinoListTile(
9090
/// title: const Text('Lights'),
9191
/// trailing: CupertinoSwitch(
9292
/// value: _lights,

0 commit comments

Comments
 (0)