getScreenTitleWidth static method
- double currentScreenWidth
Returns the width of the screen title, adjusted based on the screen width.
If the screen width exceeds 1100, the value is capped to 1100.
currentScreenWidth: The current width of the screen.
Returns the adjusted screen title width.
Implementation
static double getScreenTitleWidth(double currentScreenWidth) {
if (currentScreenWidth > 1100) {
currentScreenWidth = 1100;
}
return currentScreenWidth * 0.80;
}