Skip to content

Improve fidelity of CupertinoRadio #151994

@victorsanni

Description

@victorsanni

Use case

CupertinoRadio is missing the following features:

  • Fill color of an unselected radio is a linear gradient that goes from darker at the top to lighter at the bottom in dark mode
Native dark mode Flutter dark mode
native radio dark flutter radio before dark
  • In light mode, radio darkens when pressed
  • In dark mode, radio lightens when pressed
  • Default blue color of a selected radio is darker in dark mode
  • Has different colors in disabled vs. enabled states
Native macOS Flutter
radio native flutter radio before

CupertinoRadio is also missing tests to check that:

  • It is focusable and has correct focus colors
  • It uses correct default active/inactive/fill colors

Proposal

Update CupertinoRadio to latest macOS 14 visuals, and add missing tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: fidelityMatching the OEM platforms betterf: 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

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions