Skip to content

Add ways to customise Radio #168787

Closed
Closed

Description

@ValentinVignal

Use case

There is Radio

Image

and CupertinoRadio

Image

I'd like/need a way to customise Radio to change in independent ways

  • The color of the border.
  • The background color (always transparent) for now.
  • The color of the circle in it.
  • The width of the border.
  • The size of the circle in it.

That would allow me to have different designs or designs that are halfway through material and cupertino.

For example (ignore the ugly chosen colors):

Image Image

Proposal

Add parameter to Radio and RadioThemeData to be able to set

  • The color of the border.
  • The background color (always transparent) for now.
  • The color of the circle in it.
  • The width of the border.
  • The size of the circle in it.

Activity

  1. added
    in triagePresently being triaged by the triage team
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    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 14, 2025
  2. dkwingsmt commented on May 14, 2025

    @dkwingsmt
    Contributor
  3. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on May 14, 2025
  4. ValentinVignal commented on May 15, 2025

    @ValentinVignal
    ContributorAuthor

    Does it seem like something we'd want to implement? I'd be happy to raise a PR for that. I'd just need to know whether this is a legit request first :)

  5. chunhtai commented on May 15, 2025

    @chunhtai
    Contributor

    This seems like a valid request. WDYT @QuncCccccc

  6. ValentinVignal commented on Jun 26, 2025

    @ValentinVignal
    ContributorAuthor

    ☔

  7. 18 remaining items

  8. ValentinVignal commented on Aug 15, 2025

    @ValentinVignal
    ContributorAuthor

    @chunhtai I personally don't have the need to add extra parameters to CupertinoRadio.
    I added the parameters

    • backgroundColor
    • innerRadius
    • side

    To the material Radio.

    In some cases, some of those parameters would not make sense for CupertinoRadio (for example, when useCheckmarkStyle: true)

    I was wondering if it would be better to not include Cupertino in the scope of this issue and wait for a real-world need.

    What do you think?

    cc @justinmc

  9. justinmc commented on Aug 15, 2025

    @justinmc
    Contributor

    I'm fine with waiting so we don't accidentally waste effort or add maintenance burden for features that no one needs. Though if @chunhtai thinks any of these are obvious wins then maybe it makes sense.

  10. chunhtai commented on Aug 15, 2025

    @chunhtai
    Contributor

    yeah i agree we can wait until there is a need.

  11. ValentinVignal commented on Aug 16, 2025

    @ValentinVignal
    ContributorAuthor

    Fair enough, I will close his issue then. Thank you for the help!

  12. github-actions commented on Sep 1, 2025

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

  13. locked as resolved and limited conversation to collaborators on Sep 1, 2025
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

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesr: solvedIssue is closed as solvedteam-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