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,
}) : 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);