Replace ListTile usage with CupertinoListTile (#154473)

This PR replaces the `ListTile` usage in the cupertino switch example with `CupertinoListTile`.

Fixes #154450
This commit is contained in:
Shreyans Pathak
2024-09-03 14:14:53 -04:00
committed by GitHub
parent 7abeeb196b
commit 6f19403eb6

View File

@@ -80,13 +80,13 @@ const CupertinoDynamicColor _kOffLabelColor = CupertinoDynamicColor.withBrightne
///
/// {@tool snippet}
///
/// This sample shows how to use a [CupertinoSwitch] in a [ListTile]. The
/// [MergeSemantics] is used to turn the entire [ListTile] into a single item
/// This sample shows how to use a [CupertinoSwitch] in a [CupertinoListTile]. The
/// [MergeSemantics] is used to turn the entire [CupertinoListTile] into a single item
/// for accessibility tools.
///
/// ```dart
/// MergeSemantics(
/// child: ListTile(
/// child: CupertinoListTile(
/// title: const Text('Lights'),
/// trailing: CupertinoSwitch(
/// value: _lights,