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 ?? Margin.all(10),
      this.backgroundColor =
          backgroundColor ?? Colors.black.withOpacity(0.28),
      this.ripple = ripple ?? Colors.white.withOpacity(0.28),
      this.borderRadius = borderRadius ?? EdgeRadius.all(10),
      this.rewind = rewind ?? Icon(Icons.fast_rewind, color: Colors.white),
      this.forward = forward ?? Icon(Icons.fast_forward, color: Colors.white);