File tree Expand file tree Collapse file tree 3 files changed +8
-16
lines changed
stream_video_flutter/lib/src
stream_video/lib/src/errors Expand file tree Collapse file tree 3 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import 'video_error.dart';
77mixin 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 }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -6,14 +6,7 @@ import '../../../stream_video_flutter_background.dart';
66import '../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
You can’t perform that action at this time.
0 commit comments