@@ -28,6 +28,7 @@ class _PlayState extends State<Play> {
28
28
List <String > abrList = ['Automatic' ];
29
29
bool _inCalling = false ;
30
30
bool _isPaused = false ;
31
+ bool _isFullScreen = false ;
31
32
32
33
_PlayState ();
33
34
@@ -196,12 +197,18 @@ class _PlayState extends State<Play> {
196
197
builder: (context, orientation) {
197
198
return Stack (
198
199
children: < Widget > [
199
- Container (
200
+ _isFullScreen ? Container (
200
201
margin: const EdgeInsets .fromLTRB (0.0 , 0.0 , 0.0 , 0.0 ),
201
202
width: MediaQuery .of (context).size.width,
202
203
height: MediaQuery .of (context).size.height,
203
204
decoration: const BoxDecoration (color: Colors .black54),
204
205
child: RTCVideoView (_remoteRenderer,objectFit: orientation == Orientation .portrait ? RTCVideoViewObjectFit .RTCVideoViewObjectFitContain : RTCVideoViewObjectFit .RTCVideoViewObjectFitCover ),
206
+ ) : Container (
207
+ margin: const EdgeInsets .fromLTRB (0.0 , 0.0 , 0.0 , 0.0 ),
208
+ width: MediaQuery .of (context).size.width,
209
+ height: MediaQuery .of (context).size.height,
210
+ decoration: const BoxDecoration (color: Colors .black54),
211
+ child: RTCVideoView (_remoteRenderer),
205
212
),
206
213
_isPaused
207
214
? Center (
@@ -242,5 +249,4 @@ class _PlayState extends State<Play> {
242
249
)
243
250
);
244
251
}
245
-
246
252
}
0 commit comments