Skip to content

Bring CupertinoSwitch up to speed with Switch.adaptive #149275

Closed

Description

@victorsanni

Use case

There are two independent iOS-style switch implementations: Switch.adaptive and CupertinoSwitch.

CupertinoSwitch should support some functionality that Switch has, such as:

  • Ability to customize mouse cursors.
  • Ability to customize track outline color and width.
  • Ability to customize thumb color in both active and inactive states.
  • Ability to show an image/icon on the thumb.
  • Ability to resolve properties in different WidgetStates.

Most of these capabilities are already provided via Switch.adaptive on iOS/macOS. However, CupertinoSwitch should also provide these capabilities. This is also an opportunity to bring the Switch and CupertinoSwitch APIs closer together.

Proposal

Part 1

Add these capabilities to CupertinoSwitch.

Part 2

Also, a decision should be made about having Switch.adaptive delegate to CupertinoSwitch so that there are not two independent iOS-style Switch implementations.

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: fidelityMatching the OEM platforms better
    p: cupertino_uicupertino_ui package in flutter/packages
    c: proposalA detailed proposal for a change to Flutter
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on May 30, 2024
  2. added
    triaged-designTriaged by Design Languages team
    P2Important issues not at the top of the work list
    on Jun 5, 2024
  3. victorsanni commented on Jul 25, 2024

    @victorsanni
    ContributorAuthor

    Part 1 resolved by #149465.

  4. added
    P1High-priority issues at the top of the work list
    and removed
    P2Important issues not at the top of the work list
    on Jul 25, 2024
  5. moved this to In Progress in Cupertino Refreshon Jul 25, 2024
  6. changed the title [-]Improve fidelity and customizability of `CupertinoSwitch`[/-] [+]Bring `CupertinoSwitch` up to speed with `Switch.adaptive`[/+] on Jul 29, 2024
  7. victorsanni commented on Jul 29, 2024

    @victorsanni
    ContributorAuthor

    In order to make this issue more actionable, I will close this issue and create a separate issue for Part 2.

  8. moved this from In Progress to Done in Cupertino Refreshon Jul 29, 2024
  9. removed their assignment
    on Aug 3, 2024
  10. github-actions commented on Aug 17, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: fidelityMatching the OEM platforms betterc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions