Skip to content

[platform-views][iOS] PlatformViews are not clipped when using ClipRRect #118550

@felix9ia

Description

@felix9ia

#30117
This problem still exists!

image

Code:

ClipRRect(
                      borderRadius: BorderRadius.circular(100),
                      child: Container(
                        height: 150,
                        width: 150,
                        // color: Colors.redAccent,
                        child: GoogleMap(
                          myLocationButtonEnabled: false,
                          mapToolbarEnabled: false,
                          onMapCreated: _onMapCreated,
                          initialCameraPosition:
                              CameraPosition(target: _center, zoom: 11.0),
                        ),
                      ),
                    )

OR

Container(
                      height: 150,
                      width: 150,
                      // color: Colors.redAccent,
                      child: ClipRRect(
                        borderRadius: BorderRadius.circular(100),
                        child: GoogleMap(
                          myLocationButtonEnabled: false,
                          mapToolbarEnabled: false,
                          onMapCreated: _onMapCreated,
                          initialCameraPosition:
                              CameraPosition(target: _center, zoom: 11.0),
                        ),
                      ),
                    )
flutter doctor -v
[✓] Flutter (Channel master, 3.7.0-21.0.pre.42, on macOS 13.1 22C65 darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.7.0-21.0.pre.42 on channel master at /Users/jiapengfei/ProjectFiles/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 1220245b33 (32 hours ago), 2023-01-14 19:53:06 -0500
    • Engine revision f790304409
    • Dart version 3.0.0 (build 3.0.0-122.0.dev)
    • DevTools version 2.20.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.found in release: 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions