Closed onguc closed 2 years ago
I found the reason. Dimensions may be calculated differently in the old version and different in the new version. I fixed the problem by giving designSize the physical size of the device as below:
Widget build(BuildContext context) {
var physicalScreenSize = window.physicalSize;
var physicalWidth = physicalScreenSize.width;
var physicalHeight = physicalScreenSize.height;
return ScreenUtilInit(
designSize: Size(physicalWidth, physicalHeight),
...
}
I bought a previously written project. However, in the version used in the project, the allowFontScalingSelf parameter has been removed in new versions. When I removed this parameter, the text and icons started to appear too big. Any ideas on solving this?
Previous Icon Size:
New Icon Size:
Thanks in advance