Hey Developer, From A Long Time I Am An Issue With Custom Font. Actually When My Screen Is Initializing I Found My All Custom Fonts Are Not Applied But After A Few Milliseconds It Applying Automatically. Why This Happening And How To Avoid It.
Just See The Screenshot Below
- On Screen Initializing :-
- After Some Milliseconds :-
I would like to recommend you to add some splash screen using some arrangement in your screen, and then you can show your main screen after sometime meanwhile your font will be loaded
And i have one question that you’re using, ttf file or getting it from some url
I am using 4 Screens so can not add splash screen on every screen. Any other method?
.ttf File uploaded to builder assets. Also default material icons taking time too. Some this issue closing application automatically if network become slow.
Then it might not use that much of time for loading,
Let me check too
I’ll get back to you after some minutes
@I_Am_The_Bong how are you setting the custom font? are you setting them in the blocks section or in properties pannel
Ofcourse Properties Panel Sir.
And this for Material Icons
then try setting it in the block section
like this maybe this will work
and one more thing call this first and then call other functions on initialize
You can use a Clock component to delay a few seconds. While delaying, show a loading popup.
I think I have to add animation system to avoid that.
@I_Am_The_Bong have you tried this way ?
Yes, i have tried same issue again and also taking more time than previous. I have enabled high quality image is the problem from this
Android screen intaizlization behaviour ,
What you mean sir, I can’t Understand
I am using animation too for this issue.
What you mean by it? There will be no different result from @I_Am_The_Bong shared if we use this. Its taking time to initialize any screen why?
Its ram behaviour on android
6 GB used of 8 GB Ram sir.