Replies: 3 comments 1 reply
-
VarlyApp uses AssetsHandler for loading images. You might take that as a starting point. |
Beta Was this translation helpful? Give feedback.
-
I believe that my AssetsHandler is working properly thanks to the above suggestions.
then an error such as However, if I use the full path to the png file instead of a relative path, no error appears in the terminal output and the png file appears on the screen. Any suggestions on how I could use the relative path instead of the full path would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
I found a solution regarding the path issue that works for my application but might not be suitable for other applications. In the app.go function where the png file is created I added the following code:
In my .svelte file I used this:
|
Beta Was this translation helpful? Give feedback.
-
Does anyone know of an existing example of using AssetsHandler? The objective is to be able to create a image (e.g. a png file) on the fly and then update it and have what is displayed on the screen reflect the changes.
Beta Was this translation helpful? Give feedback.
All reactions