FLUTTER ECOSYSTEM

paurakhsharma/flutter_chord

Flutter용 가사 및 코드 파서

flutter_chord 프로젝트 이미지
Stars
31
Forks
14
최근 푸시(UTC)
2026. 7. 9.
프로젝트 상태
활성
Paurakh Sharma Humagain GitHub avatar
GITHUB User

Paurakh Sharma Humagain ↗

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

OneSheepNepal
언어DartHTMLSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • mockito개발 의존성^5.0.17

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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,
);