controllerTop method

Widget controllerTop()

Implementation

Widget controllerTop() {
  return Container(
    alignment: Alignment.topCenter,
    padding: const EdgeInsets.symmetric(horizontal: 10),
    height: 50,
    child: Row(
      children: [
        ///Will enable if configuration have be done
        // controller.playerWidget.buttonClick(
        //     const Icon(
        //       Icons.arrow_back,
        //       color: Colors.white,
        //     ),
        //     null,
        //     () {}),
        Expanded(
            child: Row(
          mainAxisAlignment: MainAxisAlignment.end,
          children: [
            ///This feature will release as soon as possible
            // controller.playerWidget.downloadWidget(
            //     downloadState: controller.downloadState,
            //     percentageDownloaded: controller.percentageDownloaded,
            //     openOptionQuality: () {
            //       controller.playerMaterialBottomSheet
            //           .showQualityDownloadSelectionWidget(
            //               controller.playerMethodManager.getListQuality(),
            //               controller.playerMethodManager
            //                   .fetchHlsMasterPlaylist.playerResource);
            //     },
            //     retryDownload: () {
            //       controller.playerMethodManager.setRetryDownload();
            //     },
            //     cancelDownload: () {
            //       controller.playerMethodManager.setCancelDownload();
            //     }),
            controller.playerResource.playerSubtitleResources != null
                ? controller.playerWidget.buttonClick(
                    const Icon(
                      Icons.subtitles_outlined,
                      color: Colors.white,
                    ),
                    null, () {
                    controller.playerMaterialBottomSheet
                        .showSubtitlesSelectionWidget(controller
                            .playerMethodManager.fetchHlsMasterPlaylist
                            .getListSubtitle());
                  })
                : const SizedBox(),
            controller.playerWidget.buttonClick(
                const Icon(
                  Icons.more_horiz_sharp,
                  color: Colors.white,
                ),
                null, () {
              controller.playerMaterialBottomSheet
                  .showMoreTypeSelectionWidget(
                      controller.playerMethodManager.getListQuality(),
                      controller.playerMethodManager.getCurrentUrlQuality());
            }),
          ],
        ))
      ],
    ),
  );
}