FanjiaoSeekBarWidget constructor

const FanjiaoSeekBarWidget({
  1. Key? key,
  2. required FanjiaoSeekBarController controller,
  3. Duration duration = const Duration(seconds: 1),
  4. Duration initialTime = Duration.zero,
  5. double progressWidth = 4,
  6. dynamic gestureListener(
    1. ProgressEvent event
    )?,
  7. Widget buildBlock(
    1. Size blockSize,
    2. Offset blockOffset
    )?,
  8. Size blockSize = const Size(20, 20),
  9. Widget? controlView,
  10. bool showPreview = false,
  11. Color trackColor = Colors.white10,
  12. Color textColor = Colors.white54,
})

Implementation

const FanjiaoSeekBarWidget({
  Key? key,
  required this.controller,
  this.duration = const Duration(seconds: 1),
  this.initialTime = Duration.zero,
  this.progressWidth = 4,
  this.gestureListener,
  this.buildBlock,
  this.blockSize = const Size(20, 20),
  this.controlView,
  this.showPreview = false,
  this.trackColor = Colors.white10,
  this.textColor = Colors.white54,
}) : super(key: key);