ForwardAndRewindStyle constructor

ForwardAndRewindStyle({
  1. BarStyle? bar,
  2. Widget? rewind,
  3. Widget? forward,
  4. Color? backgroundColor,
  5. EdgeInsetsGeometry? padding,
  6. BorderRadius? borderRadius,
  7. Color? ripple,
  8. double spaceBeetweenBarAndText = 10,
})

With this argument change the icons that appear when double-tapping, also the style of the container that indicates when the video will be rewind or forward.

Implementation

ForwardAndRewindStyle({
  BarStyle? bar,
  Widget? rewind,
  Widget? forward,
  Color? backgroundColor,
  EdgeInsetsGeometry? padding,
  BorderRadius? borderRadius,
  Color? ripple,
  this.spaceBeetweenBarAndText = 10,
})  : this.bar = bar ?? BarStyle.forward(),
      this.padding = padding ?? EdgeInsets.all(10),
      this.backgroundColor =
          backgroundColor ?? Colors.black.withOpacity(0.28),
      this.ripple = ripple ?? Colors.white.withOpacity(0.28),
      this.borderRadius =
          borderRadius ?? BorderRadius.all(Radius.circular(10)),
      this.rewind = rewind ?? Icon(Icons.fast_rewind, color: Colors.white),
      this.forward = forward ?? Icon(Icons.fast_forward, color: Colors.white);