landscapeMode function
Implementation
Widget landscapeMode(BuildContext context, EnxController enxController) {
return Row(
children: [
enxController.activeTalkerList.isNotEmpty
? Card(
child: SizedBox(
height: MediaQuery.of(context).size.height - 30.h,
width: enxController.activeTalkerList.length > 1
? MediaQuery.of(context).size.width / 1.4
: MediaQuery.of(context).size.width - 10.h,
child: Expanded(
child: EnxPlayerWidget(
enxController.activeTalkerList[0].streamId!,
local: false,
height: 200.h.toInt(),
width: 100.w.toInt(),
zMediaOverlay: true,
),
),
))
: Text(
'Wait for others to join',
style: TextStyle(color: Colors.white, fontSize: 16.sp),
),
enxController.activeTalkerList.length > 1
? Expanded(
child: ListView.builder(
shrinkWrap: true,
scrollDirection: Axis.vertical,
itemCount: enxController.activeTalkerList.length,
itemBuilder: (BuildContext context, int index) {
return index > 0
? Padding(
padding: EdgeInsets.zero,
child: Card(
child: SizedBox(
height: MediaQuery.of(context).size.height / 2 -
5.h,
width: MediaQuery.of(context).size.width,
child: EnxPlayerWidget(
enxController
.activeTalkerList[index].streamId!,
local: false,
height: 150.h.toInt(),
width: 100.w.toInt(),
)
),
),
)
: Container();
},
),
)
: Container(),
],
);
}