8000 refactor: remove unused OrientationBuilder (#1617) · The-Funk/flutter-webrtc@f32d54b · GitHub
[go: up one dir, main page]

Skip to content

Commit f32d54b

Browse files
authored
refactor: remove unused OrientationBuilder (flutter-webrtc#1617)
1 parent cddc43d commit f32d54b

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

example/lib/src/loopback_data_channel_sample.dart

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,20 @@ class _DataChannelLoopBackSampleState extends State<DataChannelLoopBackSample> {
126126
appBar: AppBar(
127127
title: Text('Data Channel Test'),
128128
),
129-
body: OrientationBuilder(
130-
builder: (context, orientation) {
131-
return Center(
132-
child: Column(
133-
mainAxisAlignment: MainAxisAlignment.center,
134-
children: [
135-
Text('(caller)data channel 1:\n'),
136-
Container(
137-
child: Text(_dc1Status),
138-
),
139-
Text('\n\n(callee)data channel 2:\n'),
140-
Container(
141-
child: Text(_dc2Status),
142-
),
143-
],
144-
));
145-
},
129+
body: Center(
130+
child: Column(
131+
mainAxisAlignment: MainAxisAlignment.center,
132+
children: [
133+
Text('(caller)data channel 1:\n'),
134+
Container(
135+
child: Text(_dc1Status),
136+
),
137+
Text('\n\n(callee)data channel 2:\n'),
138+
Container(
139+
child: Text(_dc2Status),
140+
),
141+
],
142+
),
146143
),
147144
floatingActionButton: FloatingActionButton(
148145
onPressed: _inCalling ? _hangUp : _makeCall,

0 commit comments

Comments
 (0)
0