TechnoPrashant / Sizer

A flutter plugin for Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
MIT License
249 stars 76 forks source link

Versions 3 and up use the Responsive Sizer widget. #80

Closed benjaminhorner closed 1 week ago

benjaminhorner commented 1 month ago

Install version 2. Upgrade to version 3+

The package breaks and the Sizer widget is gone. The content of the widget.dart file is identical to that of the Responsive Sizer package.

https://github.com/CoderUni/responsive_sizer/blob/main/lib/src/widget.dart https://github.com/TechnoPrashant/Sizer/blob/master/lib/widget.dart

zg0ul commented 1 month ago

I was facing the same issue, but after reading the code, I realized that you need to wrap MaterialApp with a ResponsiveSizer instead of Sizer. After doing that my app works fine.

image

I suspect that the documentation hasn't been updated yet.

benjaminhorner commented 1 month ago

I was facing the same issue, but after reading the code, I realized that you need to wrap MaterialApp with a ResponsiveSizer instead of Sizer. After doing that my app works fine.

image

I suspect that the documentation hasn't been updated yet.

Yeah. I did try that after reading the code but once that is done, all .w .sp etc do NOT work anymore and I am left with the ResponsoveSizer package features. If you compare V2 to V3, you will notice there are LOTS of changes.

ilyasarafathemvigo commented 1 month ago

facing same issue

AG-Akash09 commented 1 month ago

We are encountering the same issue when manually updating the Sizer to ResponsiveSizer, which causes the entire screen layout to break. Do you have any suggestions for resolving this?

mvtmm commented 1 month ago

Facing the same issue. My whole Layout is broken.

Berker-Sen commented 3 weeks ago

Our layout is broken as well, .sp and .h values (probably others as well) are calculated much smaller then they are suppose to be. Please keep the calculations same as before. Thanks.

TechnoPrashant commented 1 week ago

Change ResponsiveSizer to Sizer in Version 3.0.4