From 6f19403eb6ebe3964455e1f472e984d68c7c56e8 Mon Sep 17 00:00:00 2001 From: Shreyans Pathak Date: Tue, 3 Sep 2024 14:14:53 -0400 Subject: [PATCH] Replace `ListTile` usage with `CupertinoListTile` (#154473) This PR replaces the `ListTile` usage in the cupertino switch example with `CupertinoListTile`. Fixes #154450 --- packages/flutter/lib/src/cupertino/switch.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/switch.dart b/packages/flutter/lib/src/cupertino/switch.dart index b7c804a1bc..83f3d9de56 100644 --- a/packages/flutter/lib/src/cupertino/switch.dart +++ b/packages/flutter/lib/src/cupertino/switch.dart @@ -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,