Skip to content

Commit ae29db6

Browse files
committed
refactor: round local camera preview overlay corners
1 parent 80fadb4 commit ae29db6

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

lib/features/call/widgets/local_camera_preview_overlay.dart

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,21 @@ class LocalCameraPreviewOverlay extends StatelessWidget {
6363
onTap: isSwitchEnabled ? onSwitchCameraPressed : null,
6464
child: Stack(
6565
children: [
66-
Container(
67-
decoration: BoxDecoration(color: onTabGradient.withValues(alpha: 0.3)),
68-
width: frameSize.width,
69-
height: frameSize.height,
70-
child: frontCamera == null
71-
? null
72-
: RTCStreamView(
73-
key: callFrontCameraPreviewKey,
74-
stream: localStream,
75-
mirror: frontCamera!,
76-
placeholderBuilder: localePlaceholderBuilder,
77-
),
66+
ClipRRect(
67+
borderRadius: BorderRadius.circular(8),
68+
child: Container(
69+
decoration: BoxDecoration(color: onTabGradient.withValues(alpha: 0.3)),
70+
width: frameSize.width,
71+
height: frameSize.height,
72+
child: frontCamera == null
73+
? null
74+
: RTCStreamView(
75+
key: callFrontCameraPreviewKey,
76+
stream: localStream,
77+
mirror: frontCamera!,
78+
placeholderBuilder: localePlaceholderBuilder,
79+
),
80+
),
7881
),
7982
Positioned(
8083
top: 4,

0 commit comments

Comments
 (0)