CoderUni / responsive_sizer

Responsive Sizer helps implement are responsive layout by providing helper widgets and extensions

Home Page:https://pub.dev/packages/responsive_sizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScreenType.desktop Issue

nikirana22 opened this issue · comments

I want to make different UI on the bases of Screen in the current case I'm running my app on Web and I'm doing this with the help of Device.screenType but in current case i'm getting SceenType.mobile because of the logic that you wrote in if check in setScreenSize method in helper.dart class. Please correct me if i'm wrong
Screenshot (3833)

Does Device.deviceType solve your issue? It seems to be missing in the docs. I'll update the docs soon to include Device.deviceType. Thanks.

I know about Device.deviceType but i don't want to make the UI different on the Bases of platform but on the bases of Device size.

Have you tried setting the maxMobileWidth and maxTabletWidth? The docs can be found here

Closing inactive issue