diff --git a/lib/component/widgets/podcast_widgets.dart b/lib/component/widgets/podcast_widgets.dart index c2afbbe..aa24cca 100644 --- a/lib/component/widgets/podcast_widgets.dart +++ b/lib/component/widgets/podcast_widgets.dart @@ -181,28 +181,43 @@ Widget fileList(TextTheme textheme) { shrinkWrap: true, itemBuilder: ((context, index) { return index < controller.podcastFileList.length - 1 - ? Padding( + ? Padding( padding: EdgeInsets.all(Dimens.small), - child: Row( + child: + + Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Row( - children: [ - ImageIcon( - Image.asset(Assets.icons.microphon.path).image, - color: SolidColors.seeMore, - ), - SizedBox( - width: Dimens.small, - ), - SizedBox( - width: Get.width / 1.5, - child: Text( - controller.podcastFileList[index].title!, - style: textheme.headline4, + GestureDetector( + onTap: () async { + + controller.startProgress(); + controller.selectedIndex.value = + index; + await controller.player.seek( + Duration.zero, + index: controller + .selectedIndex.value); + await controller.player.play(); + }, + child: Row( + children: [ + ImageIcon( + Image.asset(Assets.icons.microphon.path).image, + color: SolidColors.seeMore, ), - ), - ], + SizedBox( + width: Dimens.small, + ), + SizedBox( + width: Get.width / 1.5, + child: Text( + controller.podcastFileList[index].title!, + style: textheme.headline4, + ), + ), + ], + ), ), Text(controller.podcastFileList[index].lenght! + ":00") ],