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,
})  : bar = bar ?? BarStyle.forward(),
      padding = padding ?? const EdgeInsets.all(10),
      backgroundColor = backgroundColor ?? Colors.black.withOpacity(0.28),
      ripple = ripple ?? Colors.white.withOpacity(0.28),
      borderRadius =
          borderRadius ?? const BorderRadius.all(Radius.circular(10)),
      rewind = rewind ?? const Icon(Icons.fast_rewind, color: Colors.white),
      forward =
          forward ?? const Icon(Icons.fast_forward, color: Colors.white);