OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.88k stars 494 forks source link

Meaning of setSp and .sp #456

Closed AthreshK closed 1 year ago

AthreshK commented 1 year ago

Hi , I was reading through the documentation and I felt it confusing to understand the difference between setSp() and .sp

I am new to using this package and I wanted to know what am I "setting" when I use the setSp(10)

Is it just a getter for the adapted font size ?

Do I need to call it everytime when want the size if I have already used the initializer and set the canvas size and given MaterialApp in builder?

Is it different than 10.sp ?

Please help me understand

Thank you

lizhuoyuan commented 1 year ago

10.sp = setSp(10)

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.