getTextStyle static method
Implementation
static TextStyle getTextStyle(String buttonSize) {
switch (buttonSize) {
case 'small':
return const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 12,
height: 16 / 12,
);
case 'large':
return const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 16,
height: 24 / 16,
);
default:
return const TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
height: 20 / 14,
);
}
}