buildSelectLineWidget method
Implementation
Positioned buildSelectLineWidget() {
return Positioned(
child: Container(
height: lyricPaint.centerY * 2,
child: Center(
child: StreamBuilder<int>(
stream: centerLyricIndexStream.stream,
builder: (context, snapshot) {
var centerIndex = snapshot.data ?? 0;
if (lyricPaint.model.isNullOrEmpty) {
return Container();
}
return widget.selectLineBuilder!.call(
lyricPaint.model?.lyrics[centerIndex].startTime ?? 0, () {
setSelectLine(false);
disposeFiling();
disposeSelectLineDelay();
});
}),
),
),
top: (widget.padding?.top ?? 0),
left: 0,
right: 0,
);
}