splitCountryWidth method

double splitCountryWidth(
  1. double screenWidth, {
  2. required bool isPhone,
})

Implementation

double splitCountryWidth(double screenWidth, {required bool isPhone}) {
  final minW = splitMinCountryWidth ?? (isPhone ? 104 : 120);
  final maxW = splitMaxCountryWidth ?? (isPhone ? 132 : 160);
  final target = screenWidth * (isPhone ? 0.30 : 0.28);
  return target.clamp(minW, maxW);
}