Skip to content

[web] Wrapping CupertinoSegmentedControl with a ClipRRect on Flutter Web (1.19) renders children incorrectly #60049

@paulpopiel

Description

@paulpopiel

Steps to Reproduce

Wrapping a CupertinoSegmentedControl in a ClipRRect on Flutter Web causes the children widgets to be incorrectly rendered.

Build the following widget tree in Flutter Web on the 1.19 beta channel:

    return ClipRRect(
      borderRadius: BorderRadius.circular(10),
      child: CupertinoSegmentedControl<TestEnum>(
        children: {
          TestEnum.one: Text('One'),
          TestEnum.two: Text('Two'),
          TestEnum.three: Text('Three'),
        },
        onValueChanged: (value) {},
      ),
    );

Expected results:

https://imgur.com/a/PdLQlaB

Actual results:

https://imgur.com/a/bqIEbpK

NOTE: This used to work on the 1.18 beta channel on Web.

Logs
[✓] Flutter (Channel beta, 1.19.0-4.1.pre, on Mac OS X 10.15.4 19E287, locale en-AU)
    • Flutter version 1.19.0-4.1.pre at /Users/paulpopiel/Developer/flutter
    • Framework revision f994b76974 (13 days ago), 2020-06-09 15:53:13 -0700
    • Engine revision 9a28c3bcf4
    • Dart version 2.9.0 (build 2.9.0-14.1.beta)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions