LyricsRenderer constructor

const LyricsRenderer({
  1. Key? key,
  2. required String lyrics,
  3. required TextStyle textStyle,
  4. required TextStyle chordStyle,
  5. required Function onTapChord,
  6. bool showChord = true,
  7. int widgetPadding = 0,
  8. int transposeIncrement = 0,
  9. int scrollSpeed = 0,
  10. double lineHeight = 8.0,
  11. CrossAxisAlignment horizontalAlignment = CrossAxisAlignment.center,
  12. Widget? leadingWidget,
  13. Widget? trailingWidget,
})

Implementation

const LyricsRenderer({
  Key? key,
  required this.lyrics,
  required this.textStyle,
  required this.chordStyle,
  required this.onTapChord,
  this.showChord = true,
  this.widgetPadding = 0,
  this.transposeIncrement = 0,
  this.scrollSpeed = 0,
  this.lineHeight = 8.0,
  this.horizontalAlignment = CrossAxisAlignment.center,
  this.leadingWidget,
  this.trailingWidget,
}) : super(key: key);