Migrate constraint check to utils

This commit is contained in:
Ankit Mahato
2023-07-20 01:33:03 +05:30
parent f5ac9f827e
commit bf49a56c0f
3 changed files with 17 additions and 12 deletions

View File

@ -0,0 +1,12 @@
bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
switch (options) {
case 1:
return (maxWidth < 300) ? false : true;
case 2:
return (maxWidth < 400) ? false : true;
case 3:
return (maxWidth < 500) ? false : true;
default:
return false;
}
}