From 627f1d200bacda002d3b31235f221b4224cb96e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sharma?= <737941+loic-sharma@users.noreply.github.com> Date: Thu, 13 Mar 2025 10:04:08 -0700 Subject: [PATCH] Add CupertinoSwitch widget of the week video (#165093) --- packages/flutter/lib/src/cupertino/switch.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter/lib/src/cupertino/switch.dart b/packages/flutter/lib/src/cupertino/switch.dart index a9bc166e32..539cdeb292 100644 --- a/packages/flutter/lib/src/cupertino/switch.dart +++ b/packages/flutter/lib/src/cupertino/switch.dart @@ -59,6 +59,8 @@ const CupertinoDynamicColor _kOffLabelColor = CupertinoDynamicColor.withBrightne /// /// Used to toggle the on/off state of a single setting. /// +/// {@youtube 560 315 https://www.youtube.com/watch?v=24tg_N4sdMQ} +/// /// The switch itself does not maintain its toggle state. Instead, when the /// toggle state of the switch changes, the widget calls the [onChanged] /// callback. Most widgets that use a switch will listen for the [onChanged]