buildBottomBar method
Implementation
Widget buildBottomBar() {
final controller = context.watch<BetterVideoPlayerController>();
return Align(
alignment: Alignment.bottomCenter,
child: AnimatedOpacity(
opacity: !_isHide ? 1.0 : 0.0,
duration: Duration(milliseconds: 300),
child: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
Colors.black,
],
),
),
child: Row(
children: [
buildPlayPause(_onPlayPause),
Expanded(
child: buildProgress(
show,
() => show(duration: Duration(seconds: 3)),
),
),
if (controller.value.videoPlayerController != null)
buildExpand(widget.isFullScreen ? _onReduceCollapse : _onExpandCollapse)
else
SizedBox(width: 9),
],
),
),
),
);
}