LyricsRenderer constructor

const LyricsRenderer({
  1. Key? key,
  2. required String lyrics,
  3. required TextStyle textStyle,
  4. required TextStyle chordStyle,
  5. required Function onTapChord,
  6. TextStyle? chorusStyle,
  7. TextStyle? capoStyle,
  8. double scaleFactor = 1.0,
  9. bool showChord = true,
  10. int widgetPadding = 0,
  11. int transposeIncrement = 0,
  12. int scrollSpeed = 0,
  13. double lineHeight = 8.0,
  14. CrossAxisAlignment horizontalAlignment = CrossAxisAlignment.center,
  15. ScrollPhysics scrollPhysics = const ClampingScrollPhysics(),
  16. Widget? leadingWidget,
  17. Widget? trailingWidget,
  18. 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);