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

Why use MediaQuery when I set deviceSize? #372

Closed zhcode-fun closed 2 years ago

zhcode-fun commented 2 years ago

image

Why use MediaQuery when I set deviceSize? Is deviceSize useful?

英语不好,再用中文说一遍 按理说,我传了deviceSize那应该就用我传的尺寸计算才对,而且我觉得如果传了deviceSize的情况下context也可以不用传了, 但现在无论传不传deviceSize,插件都会自己用MediaQuery 获取的尺寸,deviceSize好像没什么用

Mounir-Bouaiche commented 2 years ago

Good point.

lizhuoyuan commented 2 years ago

应该是历史遗留问题

github-actions[bot] commented 2 years ago

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