builder_AudioArea method
Implementation
Widget builder_AudioArea(List<XMediaItem>? liAudio, XFDataItem xclItem) {
return Container(
margin: EdgeInsets.only(bottom: 7),
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: liAudio!
.where((element) => element.xDocID == xclItem.id)
.map((element) => GestureDetector(
onTap: () {},
child: Container(
margin: EdgeInsets.symmetric(horizontal: 5),
width: 100,
color: Colors.grey[800],
height: 100,
child: Container(
child: IconButton(
icon: Icon(
element.isShowDetails ? Icons.block : Icons.mic,
size: 28,
),
onPressed: () async {
setState(() {
element.isShowDetails = !element.isShowDetails;
});
if (element.isShowDetails) {
await play(element.payload!, setState).whenComplete(() => setState(() {
element.isShowDetails = false;
}));
} else {}
})))))
.toList())));
}