buildReaderWidget method
build reader widget
Implementation
Container buildReaderWidget() {
return Container(
padding: widget.padding ?? EdgeInsets.zero,
color: Colors.transparent,
width: widget.size?.width,
height: widget.size?.height,
child: LayoutBuilder(
builder: (c, box) {
if (cacheBox?.toString() != box.toString()) {
cacheBox = box;
handleSize();
}
if (widget.model.isNullOrEmpty) {
return widget.emptyBuilder?.call() ?? Container();
}
return CustomPaint(
painter: lyricPaint,
size: mSize,
);
},
),
);
}