You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this time, HomeWidget.renderFlutterWidget has an error with fileName and logicalSize
For fileName The named parameter 'fileName' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'fileName'
I got this error
About logicalSize The argument type 'Size?' can't be assigned to the parameter type 'Size'.
I got this error
So we're going to get rid of the two people who have errors
You need to provide the key that will be used as the filename
You need to provide the size you want the picture to be taken
As a backstory: The First Version of this could only save widgets that were already present in the widget tree. But we changed it such that you can render Widgets that you don't add to the main app's Widget tree
https://codelabs.developers.google.com/flutter-home-screen-widgets#5
I'm following the Rendering Flutter Widgets as an image process in Codelab above.
There's an error with the code above
At this time, HomeWidget.renderFlutterWidget has an error with fileName and logicalSize
For fileName
The named parameter 'fileName' isn't defined.
Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'fileName'
I got this error
About logicalSize
The argument type 'Size?' can't be assigned to the parameter type 'Size'.
I got this error
So we're going to get rid of the two people who have errors
The error below occurred because I executed the code as above.
Execution failed for task ':app:compileFlutterBuildDebug'.
What should I do?
The text was updated successfully, but these errors were encountered: