FanjiaoSeekBarWidget constructor
const
FanjiaoSeekBarWidget({
- Key? key,
- required FanjiaoSeekBarController controller,
- Duration duration = const Duration(seconds: 1),
- Duration initialTime = Duration.zero,
- double progressWidth = 4,
- dynamic gestureListener(
- ProgressEvent event
- Widget buildBlock()?,
- Size blockSize = const Size(20, 20),
- Widget? controlView,
- bool showPreview = false,
- Color trackColor = Colors.white10,
- 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);