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

Need help for mobile responsive #510

Closed 92sajid110 closed 9 months ago

92sajid110 commented 11 months ago

Hello, I have testing physical device Redmi Note 10 have 6.47" physical screen size and its resolution is about 1080 x 2340 Pixels with approximately 398 PPI pixel density. Xiaomi Mi Note 10 has viewport size 393 x 851 Pixels and its pixel ratio is about 2.75.

I tried designSize: const Size(393, 851), designSize: const Size(360, 690), deviceSize: const Size(271, 573.5),

but on other emulator it's not affecting any responsiveness and changing this values didn't affect any change in both devices. I want to design app in my physical device and adapt in all other devices ratio. Please help what should i use.

@override Widget build(BuildContext context) { ScreenUtil.init(context); return ScreenUtilInit( designSize: const Size(360, 690), minTextAdapt: true, splitScreenMode: false, builder: (context, child) { return GetMaterialApp(..... )}

github-actions[bot] commented 10 months ago

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

github-actions[bot] commented 9 months ago

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