What do you want to achieve?
I would like to be able to develop an application using Squareline Studio that does not keep all screens alive continously.
Do you see alternative options and workaround to achieve it?
My current work-around is using Squareline studio to facilitate rapid UI development of screens visually, but only use the “call function” events as opposed to “change screen” or otherwise. Then in these functions I make sure to clean up any inactive screens following the transition.
Additionally, I do not use the ui_init() function that is default exported from Squareline studio as this will create and allocate memory for all screens on startup… I have to write a custom ui_init() function instead.
Mention some use cases
I have 10+ screens, and not enough memory for all of them to be implemented at the same time. This is probably quite common in low-resource systems. It was a shock to me that squareline studio was implemented in this way as it will eat up so much memory. Please note I have read:
Multiple screens / Unique object names - #2 by kisvegabor where the reason for this is explained. It does make sense but I think for a paid product there should be an option where the developer can have full control of this from within squareline studio. Hopefully in the future!
Thanks, big fan of LVGL!