diff --git a/CHANGELOG.md b/CHANGELOG.md index c8df831..9245984 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.5 +* Fix Sharp chords transpose issue + ## 0.0.4 * Auto Scroll * Transpose diff --git a/example/pubspec.lock b/example/pubspec.lock index 93faea3..7ef3e87 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -68,7 +68,7 @@ packages: path: ".." relative: true source: path - version: "0.0.4" + version: "0.0.5" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/src/chord_parser.dart b/lib/src/chord_parser.dart index 86fbb04..7cd029a 100644 --- a/lib/src/chord_parser.dart +++ b/lib/src/chord_parser.dart @@ -67,6 +67,7 @@ class ChordProcessor { return ChordLyricsDocument(_chordLyricsLines); } + /// Return the textwidth of the text in the given style double textWidth(String text, TextStyle textStyle) { return (TextPainter( text: TextSpan(text: text, style: textStyle), @@ -78,6 +79,7 @@ class ChordProcessor { .width; } + /// Transpose the chord text by the given increment String transposeChord(String chord, int increment) { final cycle = [ "C", diff --git a/pubspec.yaml b/pubspec.yaml index f9da9bc..8e6f04c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: flutter_chord -description: Lyrics Chord parser for Flutter -version: 0.0.4 +description: Lyrics Chord parser and renderer for Flutter. It also comes with transpose and auto-scroll features. +version: 0.0.5 repository: https://github.com/paurakhsharma/flutter_chord environment: - sdk: ">=2.12.0 <3.0.0" - flutter: ">=1.17.0" + sdk: '>=2.12.0 <3.0.0' + flutter: '>=1.17.0' dependencies: flutter: