flutter_screenutil icon indicating copy to clipboard operation
flutter_screenutil copied to clipboard

Different between 24.r vs 24.h or 24.w in portrait

Open AbdalazizAbdallah opened this issue 4 years ago • 3 comments

Hi everyone ^_^

I have a misunderstanding about 24.r and different for others, and where I can use .r in my design?

BTW I use .r in all sizes in my design such as my draft (375,667) and declare Card width 330.r , height 178.r

so can you explain this, and I write true according to your package to get responsive design

Thank in advance

AbdalazizAbdallah avatar Sep 14 '22 10:09 AbdalazizAbdallah

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

github-actions[bot] avatar Oct 15 '22 02:10 github-actions[bot]

@AbdalazizAbdallah Radius: .r Height: .h Width: .w FontSize: .sp

This video will help to you. --> Video

E-MRE avatar Oct 19 '22 14:10 E-MRE

ScreenUtil().setWidth(540) (dart sdk>=2.6 : 540.w) //Adapted to screen width ScreenUtil().setHeight(200) (dart sdk>=2.6 : 200.h) //Adapted to screen height , under normal circumstances, the height still uses x.w ScreenUtil().radius(200) (dart sdk>=2.6 : 200.r) //Adapt according to the smaller of width or height ScreenUtil().setSp(24) (dart sdk>=2.6 : 24.sp) //Adapter font

lizhuoyuan avatar Oct 27 '22 08:10 lizhuoyuan