Cupertino Switch Widget

CupertinoSwitch Widget – Flutter Widget Guide By Flutter Agency

· 4 min read

CupertinoSwitch Widget is an iOS-style switch. It is basically used to toggle the on/off state of a single setting just like Switch Widget. What is CupertinoSwitch Widget in Flutter? The switch itself does not maintain any state. Instead, when the state of the switch changes, the widget calls the onChanged() callback. Most widgets that use…