Skip to content

Commit d245042

Browse files
authored
Remove some deprecations for useful parameters (#998)
1 parent 71c2b7a commit d245042

13 files changed

+6
-162
lines changed

packages/stream_video_flutter/lib/fix_data.yaml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,6 @@ transforms:
148148
value: 'arguments[callControlsWidgetBuilder]'
149149
#endregion StreamCallContent
150150

151-
#region StreamCallParticipants
152-
- title: 'remove participants from StreamCallParticipants'
153-
date: '2025-06-06'
154-
element:
155-
uris: ['package:stream_video_flutter/stream_video_flutter.dart']
156-
constructor: ''
157-
inClass: 'StreamCallParticipants'
158-
changes:
159-
- kind: 'removeParameter'
160-
name: 'participants'
161-
#endregion StreamCallParticipants
162-
163151
#region StreamIncomingCallContent
164152
- title: 'remove callState from StreamIncomingCallContent'
165153
date: '2025-06-06'
@@ -294,58 +282,6 @@ transforms:
294282
value: 'arguments[participantsDisplayNameWidgetBuilder]'
295283
#endregion StreamOutgoingCallContent
296284

297-
#region StreamCallControls
298-
- title: 'remove localParticipant from StreamCallControls.withDefaultOptions'
299-
date: '2025-06-06'
300-
element:
301-
uris: ['package:stream_video_flutter/stream_video_flutter.dart']
302-
constructor: 'withDefaultOptions'
303-
inClass: 'StreamCallControls'
304-
changes:
305-
- kind: 'removeParameter'
306-
name: 'localParticipant'
307-
308-
- title: 'remove localParticipant from FlipCameraOption'
309-
date: '2025-06-06'
310-
element:
311-
uris: ['package:stream_video_flutter/stream_video_flutter.dart']
312-
constructor: ''
313-
inClass: 'FlipCameraOption'
314-
changes:
315-
- kind: 'removeParameter'
316-
name: 'localParticipant'
317-
318-
- title: 'remove localParticipant from ToggleScreenShareOption'
319-
date: '2025-06-06'
320-
element:
321-
uris: ['package:stream_video_flutter/stream_video_flutter.dart']
322-
constructor: ''
323-
inClass: 'ToggleScreenShareOption'
324-
changes:
325-
- kind: 'removeParameter'
326-
name: 'localParticipant'
327-
328-
- title: 'remove localParticipant from ToggleMicrophoneOption'
329-
date: '2025-06-06'
330-
element:
331-
uris: ['package:stream_video_flutter/stream_video_flutter.dart']
332-
constructor: ''
333-
inClass: 'ToggleMicrophoneOption'
334-
changes:
335-
- kind: 'removeParameter'
336-
name: 'localParticipant'
337-
338-
- title: 'remove localParticipant from ToggleCameraOption'
339-
date: '2025-06-06'
340-
element:
341-
uris: ['package:stream_video_flutter/stream_video_flutter.dart']
342-
constructor: ''
343-
inClass: 'ToggleCameraOption'
344-
changes:
345-
- kind: 'removeParameter'
346-
name: 'localParticipant'
347-
#endregion StreamCallControls
348-
349285
#region PictureInPictureConfiguration
350286
- title: 'replace callPictureInPictureBuilder with callPictureInPictureWidgetBuilder in AndroidPictureInPictureConfiguration'
351287
date: '2025-06-06'

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class StreamCallControls extends StatelessWidget {
2323
/// Builds a call controls bar with the default set of call control options.
2424
StreamCallControls.withDefaultOptions({
2525
required Call call,
26-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
2726
CallParticipantState? localParticipant,
2827
this.backgroundColor,
2928
this.elevation,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import '../../../stream_video_flutter.dart';
77
/// Builds the default set of call control options.
88
List<Widget> defaultCallControlOptions({
99
required Call call,
10-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
1110
CallParticipantState? localParticipant,
1211
}) {
1312
return [

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class FlipCameraOption extends StatelessWidget {
99
const FlipCameraOption({
1010
super.key,
1111
required this.call,
12-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
1312
this.localParticipant,
1413
this.frontCameraIcon = Icons.flip_camera_ios_rounded,
1514
this.backCameraIcon = Icons.flip_camera_ios_rounded,
@@ -19,7 +18,7 @@ class FlipCameraOption extends StatelessWidget {
1918
final Call call;
2019

2120
/// The current local participant.
22-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
21+
/// If provided this [localParticipant] will be used, otherwise the localParticipant of the [call] will be used.
2322
final CallParticipantState? localParticipant;
2423

2524
/// The icon that is shown when the front camera is active.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class ToggleCameraOption extends StatelessWidget {
1111
const ToggleCameraOption({
1212
super.key,
1313
required this.call,
14-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
1514
this.localParticipant,
1615
this.enabledCameraIcon = Icons.videocam_rounded,
1716
this.disabledCameraIcon = Icons.videocam_off_rounded,
@@ -25,7 +24,7 @@ class ToggleCameraOption extends StatelessWidget {
2524
final Call call;
2625

2726
/// The current local participant.
28-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
27+
/// If provided this [localParticipant] will be used, otherwise the localParticipant of the [call] will be used.
2928
final CallParticipantState? localParticipant;
3029

3130
/// The icon that is shown when the camera is enabled.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class ToggleMicrophoneOption extends StatelessWidget {
1111
const ToggleMicrophoneOption({
1212
super.key,
1313
required this.call,
14-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
1514
this.localParticipant,
1615
this.enabledMicrophoneIcon = Icons.mic_rounded,
1716
this.disabledMicrophoneIcon = Icons.mic_off_rounded,
@@ -25,7 +24,7 @@ class ToggleMicrophoneOption extends StatelessWidget {
2524
final Call call;
2625

2726
/// The current local participant.
28-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
27+
/// If provided this [localParticipant] will be used, otherwise the localParticipant of the [call] will be used.
2928
final CallParticipantState? localParticipant;
3029

3130
/// The icon that is shown when the microphone is enabled.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class ToggleScreenShareOption extends StatelessWidget {
1010
const ToggleScreenShareOption({
1111
super.key,
1212
required this.call,
13-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
1413
this.localParticipant,
1514
this.enabledScreenShareIcon = Icons.screen_share,
1615
this.disabledScreenShareIcon = Icons.stop_screen_share,
@@ -27,7 +26,7 @@ class ToggleScreenShareOption extends StatelessWidget {
2726
final Call call;
2827

2928
/// The current local participant.
30-
@Deprecated(PartialStateDeprecationMessage.localParticipant)
29+
/// If provided this [localParticipant] will be used, otherwise the localParticipant of the [call] will be used.
3130
final CallParticipantState? localParticipant;
3231

3332
/// The icon that is shown when the screen sharing is enabled.

packages/stream_video_flutter/lib/src/call_participants/call_participants.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class StreamCallParticipants extends StatefulWidget {
4343
StreamCallParticipants({
4444
super.key,
4545
required this.call,
46-
@Deprecated(PartialStateDeprecationMessage.participants) this.participants,
46+
this.participants,
4747
this.filter = _defaultFilter,
4848
Sort<CallParticipantState>? sort,
4949
this.enableLocalVideo,
@@ -58,7 +58,7 @@ class StreamCallParticipants extends StatefulWidget {
5858
final Call call;
5959

6060
/// The list of participants to display.
61-
@Deprecated(PartialStateDeprecationMessage.participants)
61+
/// If provided these [participants] will be used, otherwise the participants of the [call] will be used.
6262
final List<CallParticipantState>? participants;
6363

6464
/// Used for filtering the call participants.

packages/stream_video_flutter/lib/src/widgets/partial_call_state_builder.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ class ParticipantsData extends CallbackData {
7373
}
7474

7575
abstract class PartialStateDeprecationMessage {
76-
static const localParticipant = '''
77-
No longer needed to provide localParticipant.
78-
If provided the local participant will be used, otherwise the localparticipant of the call will be used.
79-
''';
80-
81-
static const participants = '''
82-
No longer needed to provide participants.
83-
If provided the participants will be used, otherwise the participants of the call will be used.
84-
''';
85-
8676
static const callState = '''
8777
It's no longer recommended to provide `callState`.
8878
The widget can listen to more focussed partial state updates itself from the `call` object.

packages/stream_video_flutter/test_fixes/call_controls.dart

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)