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)