LyricWidget constructor

LyricWidget({
  1. Key? key,
  2. required List<Lyric> lyrics,
  3. List<Lyric>? remarkLyrics,
  4. required Size size,
  5. required LyricController controller,
  6. TextStyle? lyricStyle,
  7. TextStyle? remarkStyle,
  8. TextStyle? currLyricStyle,
  9. double lyricGap = 10,
  10. double remarkLyricGap = 20,
  11. TextStyle? draggingLyricStyle,
  12. TextStyle? draggingRemarkLyricStyle,
  13. bool enableDrag = true,
  14. double? lyricMaxWidth,
  15. TextStyle? currRemarkLyricStyle,
})

Implementation

LyricWidget(
    {Key? key,
    required this.lyrics,
    this.remarkLyrics,
    required this.size,
    required this.controller,
    this.lyricStyle,
    this.remarkStyle,
    this.currLyricStyle,
    this.lyricGap = 10,
    this.remarkLyricGap = 20,
    this.draggingLyricStyle,
    this.draggingRemarkLyricStyle,
    this.enableDrag: true,
    this.lyricMaxWidth,
    this.currRemarkLyricStyle})
    : super(key: key);