Skip to content

Rename CupertinoSwitch properties activeColor and trackColor to activeTrackColor and inactiveTrackColor #151256

@victorsanni

Description

@victorsanni

Use case

Material Switch has an activeColor which has a different meaning to CupertinoSwitch's activeColor. Switch also has an activeTrackColor and inactiveTrackColor which have the same meaning as CupertinoSwitch's activeColor and trackColor.

Proposal

To bring Switch and CupertinoSwitch APIs closer together, activeColor and trackColor should be renamed to activeTrackColor and inactiveTrackColor in CupertinoSwitch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: cupertinoflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions