getResponsiveSize function
Implementation
double getResponsiveSize(num value){
if(PlatformInfo.isPhone){
if (kDebugMode) {
// print('isPhone...');
}
return value.getDouble;
}else if(PlatformInfo.isTab || PlatformInfo.isLargeTab || PlatformInfo.isSmallTab){
if (kDebugMode) {
print('isTab...');
}
return value.getDouble * 1.5;
}else if(PlatformInfo.isDesktop){
if (kDebugMode) {
print('isDesktop...');
}
return value.getDouble * 2;
}else{
return value.getDouble;
}
}