Skip to content

Commit 35e444b

Browse files
authored
dart format (#669)
1 parent 13d7e66 commit 35e444b

File tree

3 files changed

+48
-49
lines changed

3 files changed

+48
-49
lines changed

packages/stream_video_flutter/example/lib/screen/home_tabs/join_call_tab.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class _JoinCallTabState extends State<JoinCallTab> {
7373
return;
7474
}
7575

76-
final call = StreamVideo.instance
77-
.makeCall(callType: StreamCallType(), id: callId);
76+
final call =
77+
StreamVideo.instance.makeCall(callType: StreamCallType(), id: callId);
7878

7979
if (!_useLobby) {
8080
widget.onNavigateToCall(call);

packages/stream_video_flutter/example/lib/screen/home_tabs/start_call_tab.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class _StartCallTabState extends State<StartCallTab>
102102

103103
setState(() => _callInProgress = true);
104104

105-
final call = StreamVideo.instance
106-
.makeCall(callType: StreamCallType(), id: callId);
105+
final call =
106+
StreamVideo.instance.makeCall(callType: StreamCallType(), id: callId);
107107
final result = await call.getOrCreate(
108108
ringing: _ringingCall,
109109
memberIds: [

packages/stream_video_flutter/lib/src/call_screen/outgoing_call/outgoing_call_content.dart

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -104,52 +104,51 @@ class _StreamOutgoingCallContentState extends State<StreamOutgoingCallContent> {
104104
widget.callState.otherParticipants.map((e) => e.toUserInfo()).toList();
105105

106106
final child = Material(
107-
color: Colors.transparent,
108-
child: Column(
109-
mainAxisAlignment: MainAxisAlignment.center,
110-
children: [
111-
const Spacer(),
112-
widget.participantsAvatarBuilder?.call(
113-
context,
114-
widget.call,
115-
widget.callState,
116-
participants,
117-
) ??
118-
ParticipantAvatars(
107+
color: Colors.transparent,
108+
child: Column(
109+
mainAxisAlignment: MainAxisAlignment.center,
110+
children: [
111+
const Spacer(),
112+
widget.participantsAvatarBuilder?.call(
113+
context,
114+
widget.call,
115+
widget.callState,
116+
participants,
117+
) ??
118+
ParticipantAvatars(
119+
participants: participants,
120+
singleParticipantAvatarTheme: singleParticipantAvatarTheme,
121+
multipleParticipantAvatarTheme: multipleParticipantAvatarTheme,
122+
),
123+
widget.participantsDisplayNameBuilder?.call(
124+
context,
125+
widget.call,
126+
widget.callState,
127+
participants,
128+
) ??
129+
Padding(
130+
padding:
131+
const EdgeInsets.symmetric(horizontal: 64, vertical: 32),
132+
child: CallingParticipants(
119133
participants: participants,
120-
singleParticipantAvatarTheme: singleParticipantAvatarTheme,
121-
multipleParticipantAvatarTheme:
122-
multipleParticipantAvatarTheme,
134+
singleParticipantTextStyle: singleParticipantTextStyle,
135+
multipleParticipantTextStyle: multipleParticipantTextStyle,
123136
),
124-
widget.participantsDisplayNameBuilder?.call(
125-
context,
126-
widget.call,
127-
widget.callState,
128-
participants,
129-
) ??
130-
Padding(
131-
padding:
132-
const EdgeInsets.symmetric(horizontal: 64, vertical: 32),
133-
child: CallingParticipants(
134-
participants: participants,
135-
singleParticipantTextStyle: singleParticipantTextStyle,
136-
multipleParticipantTextStyle: multipleParticipantTextStyle,
137-
),
138-
),
139-
Text(
140-
'Calling…',
141-
style: callingLabelTextStyle,
142-
),
143-
const Spacer(),
144-
OutgoingCallControls(
145-
isMicrophoneEnabled: connectOptions.microphone.isEnabled,
146-
isCameraEnabled: connectOptions.camera.isEnabled,
147-
onCancelCallTap: () => _onCancelCallTap(context),
148-
onMicrophoneTap: () => _onMicrophoneTap(context),
149-
onCameraTap: () => _onCameraTap(context),
150-
),
151-
],
152-
),
137+
),
138+
Text(
139+
'Calling…',
140+
style: callingLabelTextStyle,
141+
),
142+
const Spacer(),
143+
OutgoingCallControls(
144+
isMicrophoneEnabled: connectOptions.microphone.isEnabled,
145+
isCameraEnabled: connectOptions.camera.isEnabled,
146+
onCancelCallTap: () => _onCancelCallTap(context),
147+
onMicrophoneTap: () => _onMicrophoneTap(context),
148+
onCameraTap: () => _onCameraTap(context),
149+
),
150+
],
151+
),
153152
);
154153

155154
return widget.callBackgroundBuilder?.call(
@@ -161,7 +160,7 @@ class _StreamOutgoingCallContentState extends State<StreamOutgoingCallContent> {
161160
CallBackground(
162161
participants: participants,
163162
child: child,
164-
);
163+
);
165164
}
166165

167166
Future<void> _onCancelCallTap(BuildContext context) async {

0 commit comments

Comments
 (0)