Skip to content

Add support for passing doubles in HandSignatureControl.toSvg#51

Open
joeriddles wants to merge 1 commit intoRomanBase:masterfrom
joeriddles:support-double-toSvg
Open

Add support for passing doubles in HandSignatureControl.toSvg#51
joeriddles wants to merge 1 commit intoRomanBase:masterfrom
joeriddles:support-double-toSvg

Conversation

@joeriddles
Copy link

  • Add support for passing double values to HandSignatureControl.toSvg

The int values are converted to double values anyways:

final fitBox =
bounds.size.scaleToFit(Size(width.toDouble(), height.toDouble()));
final rect = fit
? Rect.fromLTWH(0.0, 0.0, fitBox.width, fitBox.height)
: Rect.fromLTWH(0.0, 0.0, width.toDouble(), height.toDouble());

@joeriddles joeriddles changed the title Add support for passing doubles in toSvg Add support for passing doubles in HandSignatureControl.toSvg Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant