Skip to content

Commit 6c59922

Browse files
authored
minor component fixes (#769)
1 parent 7dc91c6 commit 6c59922

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

packages/stream_video/lib/src/errors/video_error_composer.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ import 'video_error.dart';
77
mixin VideoErrors {
88
/// Composes [VideoError] instance.
99
static VideoError compose(Object? exception, [StackTrace? stackTrace]) {
10-
if (exception is String && stackTrace != null) {
11-
return VideoError(message: exception);
12-
} else if (exception is String) {
13-
return VideoError(message: exception);
10+
if (exception is String) {
11+
return VideoError(
12+
message: exception,
13+
stackTrace: stackTrace,
14+
);
1415
} else if (exception is TwirpError) {
1516
return VideoErrorWithCause(
1617
message: exception.getMsg,
@@ -32,6 +33,7 @@ mixin VideoErrors {
3233
} else {
3334
return VideoError(
3435
message: 'Unexpected error: $exception',
36+
stackTrace: stackTrace,
3537
);
3638
}
3739
}

packages/stream_video_flutter/lib/src/call_controls/call_controls.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class StreamCallControls extends StatelessWidget {
6767
spacing: spacing,
6868
padding: padding,
6969
borderRadius: borderRadius,
70+
backgroundColor: backgroundColor,
7071
);
7172
}
7273
}

packages/stream_video_flutter/lib/src/call_screen/call_content/call_content.dart

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ import '../../../stream_video_flutter_background.dart';
66
import '../call_diagnostics_content/call_diagnostics_content.dart';
77

88
/// Builder used to create a custom call app bar.
9-
typedef CallAppBarBuilder = PreferredSizeWidget Function(
10-
BuildContext context,
11-
Call call,
12-
CallState callState,
13-
);
14-
15-
/// Builder used to create a custom call app bar in landscape mode.
16-
typedef OverlayAppBarBuilder = Widget Function(
9+
typedef CallAppBarBuilder = PreferredSizeWidget? Function(
1710
BuildContext context,
1811
Call call,
1912
CallState callState,
@@ -45,7 +38,6 @@ class StreamCallContent extends StatefulWidget {
4538
this.onBackPressed,
4639
this.onLeaveCallTap,
4740
this.callAppBarBuilder,
48-
this.overlayAppBarBuilder,
4941
this.callParticipantsBuilder,
5042
this.callControlsBuilder,
5143
this.layoutMode = ParticipantLayoutMode.grid,
@@ -67,9 +59,6 @@ class StreamCallContent extends StatefulWidget {
6759
/// Builder used to create a custom call app bar.
6860
final CallAppBarBuilder? callAppBarBuilder;
6961

70-
/// Builder used to create a custom call app bar in landscape mode.
71-
final OverlayAppBarBuilder? overlayAppBarBuilder;
72-
7362
/// Builder used to create a custom participants grid.
7463
final CallParticipantsBuilder? callParticipantsBuilder;
7564

0 commit comments

Comments
 (0)