Skip to content

Commit

Permalink
Release: 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
paurakhsharma committed Jan 2, 2022
1 parent 0c3304b commit 3cf40a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.5
* Fix Sharp chords transpose issue

## 0.0.4
* Auto Scroll
* Transpose
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/src/chord_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -78,6 +79,7 @@ class ChordProcessor {
.width;
}

/// Transpose the chord text by the given increment
String transposeChord(String chord, int increment) {
final cycle = [
"C",
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 3cf40a2

Please sign in to comment.