Add CupertinoSwitch widget of the week video (#165093)

This commit is contained in:
Loïc Sharma
2025-03-13 10:04:08 -07:00
committed by GitHub
parent 0a937ba4da
commit 627f1d200b

View File

@@ -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]