Style: Rename CupertinoSwitch activeColor and trackColor to activeTrackColor and InactiveTrackColor (#151367)
Style: Rename CupertinoSwitch `activeColor` and `trackColor` to `activeTrackColor` and `InactiveTrackColor` Resolves #151256
This commit is contained in:
@@ -40,7 +40,7 @@ class _CupertinoSwitchExampleState extends State<CupertinoSwitchExample> {
|
||||
child: CupertinoSwitch(
|
||||
// This bool value toggles the switch.
|
||||
value: switchValue,
|
||||
activeColor: CupertinoColors.activeBlue,
|
||||
activeTrackColor: CupertinoColors.activeBlue,
|
||||
onChanged: (bool? value) {
|
||||
// This is called when the user toggles the switch.
|
||||
setState(() {
|
||||
|
||||
Reference in New Issue
Block a user