OpenFlutter / flutter_screenutil

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

Multiple Different designSize #481

Closed A7MeDG0L0L closed 1 year ago

A7MeDG0L0L commented 1 year ago

What if I have multiple desingSize in Figma for example I have These first one is Size(365, 1060) for mobile, Second one is Size(1440, 1440) for Web, and it declared once here

image

I tried use that function inside build method for mobile and web widgets

 ScreenUtil.init(
      context,
// for web 
      designSize: const Size(1440, 1440), // for mobile Size(365,1060) 
    );

but I think isn't works well.

github-actions[bot] commented 1 year ago

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

RomanSoviak commented 1 year ago

Need this feature as well

Mounir-Bouaiche commented 1 year ago

Duplicate of #469