LiZhuoyuan
Committed by GitHub

Merge pull request #289 from sohrabonline/patch-1

Smart size changes for balanced size
... ... @@ -12,6 +12,12 @@ extension SizeExtension on num {
///[ScreenUtil.setSp]
double get sp => ScreenUtil().setSp(this);
//smart size : it check your value if it is bigger than your value set your value
//for example you have setted 16.sm() , if for your screen 16.sp() bigger than 16 it will set 16 not 16.sp()
//I think that it is good for save size balance on big sizes of screen
double get sm => (this.sp.toDouble()>toDouble())?toDouble():sp;
///[ScreenUtil.setSp]
@Deprecated('please use [sp]')
... ...