Closed mehmetext closed 1 year ago
SPmin is for fonts, and it is not used. If you don’t know if you need it, please press the following operation:
width: size.w height:size.w fontSize: size.sp
I know that spMin
is for fonts but for example I want that a size limited to max 5 and min 2. How can I do this?
So I want a size that depends w
and it only should be between 2 and 5.
result(xx){ return math.min(5,math.max(2,xx.sp)) }
I know that
spMin
is for fonts but for example I want that a size limited to max 5 and min 2. How can I do this? So I want a size that dependsw
and it only should be between 2 and 5.
I'm new to use
flutter_screenutil
package and there are so terms that I don't know. I made a design by using this package and I wanted to ask that my usage is true or false to you. I usedspMin
so much, I'm afraid this is wrong 😅My setup is below:
And my codes are below: