Skip to content

Commit

Permalink
better formating
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahlukus committed Oct 30, 2023
1 parent ce70444 commit 6c22c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class _HomePageState extends State<HomePage> {
void initState() {
super.initState();
_lyrics = '''
1
[C]Give me Freedom, [F]Give me fire
[Am]Give me reason, [G]Take me higher
[C]See the champions [F], Take the field now
Expand All @@ -174,7 +174,7 @@ class _HomePageState extends State<HomePage> {
[Am]Unify us, [G]make us feel proud
{eoc}
2
[C]In the streets our, [F]hands are lifting
[Am]As we lose our, [G]inhibition
[C]Celebration, [F]its around us
Expand Down
2 changes: 1 addition & 1 deletion lib/src/chord_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class ChordProcessor {
final lastChordWidth = textWidth(lastChordText, chordStyle);
// final sizeOfThisChord = textWidth(_chordsSoFar, chordStyle);

double leadingSpace = max(0, sizeOfLeadingLyrics - lastChordWidth - 15);
double leadingSpace = max(1, sizeOfLeadingLyrics - lastChordWidth - 15);

final transposedChord = chordTransposer.transposeChord(_chordsSoFar);

Expand Down

0 comments on commit 6c22c8b

Please sign in to comment.