[Bug] the font selector list in the UI experiences lag.
Bug Description
After upgrading to version 0.5.8, the font selector list in the UI experiences lag.
How to Reproduce
- open settings page
- click the font selector list
- scroll down
Expected Behavior
The UI experience should be smooth.
Operating System
Desktop
AppFlowy Version(s)
0.5.8
Screenshots
Additional Context
Use ListView to lazily load the fonts.
On my system the long load time even sometimes leads to the system detecting a crash of the app and asking me if I want to force quit AppFlowy. It fully utilises one core and adds about 180MB RAM to the used memory. But I also noted a higher memory usage in general with the recent release.
On my system the long load time even sometimes leads to the system detecting a crash of the app and asking me if I want to force quit AppFlowy. It fully utilises one core and adds about 180MB RAM to the used memory. But I also noted a higher memory usage in general with the recent release.
This is my bad, I used the Material DropDown widget, but seems that it's not fully optimized for long dropdowns, thus it renders everything on first load. Causing a lot of requests and google fonts.