you can use percentages for the application, for example. In addition, when resizing an application, resizing occurs. You can listen to how he reacts.
If you want to change the text size relative to the screen size, there is no reasonable solution, as far as I know, because fontSize accepts only pixel values ââ(without em,%, etc.).
source share