LyricsRenderer constructor
const
LyricsRenderer({
- Key? key,
- required String lyrics,
- required TextStyle textStyle,
- required TextStyle chordStyle,
- required Function onTapChord,
- TextStyle? chorusStyle,
- TextStyle? capoStyle,
- double scaleFactor = 1.0,
- bool showChord = true,
- int widgetPadding = 0,
- int transposeIncrement = 0,
- int scrollSpeed = 0,
- double lineHeight = 8.0,
- CrossAxisAlignment horizontalAlignment = CrossAxisAlignment.center,
- ScrollPhysics scrollPhysics = const ClampingScrollPhysics(),
- Widget? leadingWidget,
- Widget? trailingWidget,
- ChordNotation chordNotation = ChordNotation.american,
Implementation
const LyricsRenderer(
{Key? key,
required this.lyrics,
required this.textStyle,
required this.chordStyle,
required this.onTapChord,
this.chorusStyle,
this.capoStyle,
this.scaleFactor = 1.0,
this.showChord = true,
this.widgetPadding = 0,
this.transposeIncrement = 0,
this.scrollSpeed = 0,
this.lineHeight = 8.0,
this.horizontalAlignment = CrossAxisAlignment.center,
this.scrollPhysics = const ClampingScrollPhysics(),
this.leadingWidget,
this.trailingWidget,
this.chordNotation = ChordNotation.american})
: super(key: key);