Skip to content

Radio widget becomes dotted when there is a dot styled RichText in the widget tree #101848

@ggzxd

Description

@ggzxd

Code snippet:

Column(
      children: [
        Text(
          'Hello, World!',
          style: Theme.of(context).textTheme.headline4,
        ),
        Row(
          children: [
            Radio<bool>(
              onChanged: (_) {},
              groupValue: true,
              value: true,
            ),
            Text('First'),
          ],
        ),
        Text.rich(TextSpan(
          text: 'Random underline',
          style: Theme.of(context).textTheme.bodyText2!.copyWith(
                decoration: TextDecoration.underline,
                decorationStyle: TextDecorationStyle.dotted,
              ),
        )),
        Row(
          children: [
            Radio<bool>(
              onChanged: (_) {},
              groupValue: false,
              value: false,
            ),
            Text('Second'),
          ],
        ),
      ],
    )

This works on dartpad.dev but not on emulators/devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions