Skip to content

Add "inactiveBorderColor" to Material 3 Switch #119334

Description

@shadowmelds

Use case

Like:

Switch(
  value: dark,
  inactiveBorderColor: Colors.white
  onChanged: (bool value) {
    setState(() {
      dark = value;
    });
  },
),

Proposal

Now i can't change the border color😔

微信截图_20230127225414

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.
    p: material_uimaterial_ui package in flutter/packages
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Jan 30, 2023
  2. MarcAnProv commented on Feb 5, 2023

    @MarcAnProv

    Is there no possible way to change the border color when the switch is inactive for now? Would really like this feature as well.
    Edit: For those wondering, it's the outline argument from ColorScheme that controls the inactive border color of the switch.

  3. github-actions commented on Mar 3, 2023

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

  4. locked as resolved and limited conversation to collaborators on Mar 3, 2023
  5. moved this to ✅ Done in Material 3on Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions