joranmulderij / flutter_guitar_tabs

BSD 3-Clause "New" or "Revised" License
23 stars 11 forks source link

int to double conversion error on Android #1

Closed joranmulderij closed 3 years ago

joranmulderij commented 3 years ago

On android, an exception gets thrown when building the widgets:

The following _TypeError was thrown during paint():
type 'int' is not a subtype of type 'double'

The relevant error-causing widget was: 
  TabWidget file:///C:/Users/joran/Documents/GitHub/worshipleaderapp/lib/SongRoute/ChordTabContent.dart:178:27
When the exception was thrown, this was the stack: 
#0      _MyPainter.drawFretGrid (package:flutter_guitar_tabs/flutter_guitar_tabs.dart:270:15)
#1      _MyPainter.draw (package:flutter_guitar_tabs/flutter_guitar_tabs.dart:356:10)
#2      _MyPainter.paint (package:flutter_guitar_tabs/flutter_guitar_tabs.dart:468:5)
#3      RenderCustomPaint._paintWithPainter (package:flutter/src/rendering/custom_paint.dart:564:13)
#4      RenderCustomPaint.paint (package:flutter/src/rendering/custom_paint.dart:605:7)