ForwardAndRewindStyle constructor
ForwardAndRewindStyle({
- BarStyle? bar,
- Widget? rewind,
- Widget? forward,
- Color? backgroundColor,
- EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- Color? ripple,
- 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);