Skip to content

Make widgetToImage() require a size parameter, fix example app to supply size, fixes #18#19

Open
timmaffett wants to merge 2 commits intonbrucker:mainfrom
timmaffett:fix_example
Open

Make widgetToImage() require a size parameter, fix example app to supply size, fixes #18#19
timmaffett wants to merge 2 commits intonbrucker:mainfrom
timmaffett:fix_example

Conversation

@timmaffett
Copy link
Copy Markdown

This PR makes widgetToImage() require a size parameter. The default of Size(double.maxFinite, double.maxFinite) prevents it from returning anything but a blank image and making it appear that the function does not work. That is clearly not a good default.

Also fix the example to supply a size parameter for it's widgetToImage() demonstration so that it now actually demonstrates that this function works instead of just showing a blank result.

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