FLUTTER ECOSYSTEM

paurakhsharma/flutter_chord

Parser de letras e acordes para Flutter

Capa do projeto flutter_chord
Stars
31
Forks
14
Último push (UTC)
9 de jul. de 2026
Status do projeto
Ativo
Paurakh Sharma Humagain GitHub avatar
GITHUB User

Paurakh Sharma Humagain ↗

Fullstack Developer. Instructs computers to do cool stuffs. (Python || JavaScript || Flutter) == ♥️

OneSheepNepal
LinguagensDartHTMLSwiftKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • mockitoDesenvolvimento^5.0.17

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

flutter_chord

Test

Chord parser for Flutter apps.

Features

  • Transpose Chord
  • Auto Scroll

https://raw.githubusercontent.com/paurakhsharma/flutter_chord/main/screenshot.png

Usage

1) Render the Lyrics and Chords directly.

final textStyle = TextStyle(fontSize: 18, color: Colors.white);
final chordStyle = TextStyle(fontSize: 20, color: Colors.green);

final lyrics = '''
[C]Give me Freedom, [F]Give me fire
[Am] Give me reason, [G]Take me higher
''';

@override
  Widget build(BuildContext context) {
    return LyricsRenderer(
    lyrics: _lyrics,
    textStyle: textStyle,
    chordStyle: chordStyle,
    widgetPadding: 50,
    onTapChord: (String chord) {
      print('pressed chord: $chord');
    },
    transposeIncrement: 0,
    scrollSpeed: 0,
  );
}

2. Get a parsed ChordLyricsDocument and style it as you like.


final textStyle = TextStyle(fontSize: 18, color: Colors.white);
final chordStyle = TextStyle(fontSize: 20, color: Colors.green);

final lyrics = '''
[C]Give me Freedom , [F]Give me fire
[Am] Give me reason , [G]Take me higher
''';

ChordProcessor _chordProcessor = ChordProcessor(context);
ChordLyricsDocument chordLyricsDocument = _chordProcessor.processText(
  text: lyrics,
  lyricsStyle: textStyle,
  chordStyle: chordStyle,
  transposeIncrement: 0,
);