Comments (4)
i was doing another try for the package because I really like using it... so I remembered during coding if you add a const modifier to the container, font, sizedBox...etc.... it will give an error.. so what I did in the main page I removed const modifier from the main.dart which will open the main screen & now it is working as it should be... i will keep testing it to make sure that it is OK.... my old code was
return Sizer( builder: (context, orientation, deviceType) { return const MaterialApp( home: MainScreenPage(), ); }, );
and my new code is:
return Sizer( builder: (context, orientation, deviceType) { return MaterialApp( home: MainScreenPage(), ); }, );
from sizer.
Use responsive_sizer package.
This package is not maintained any more.
responsive_sizer package is a branch of this one with active development.
Issue is solved there.
https://pub.dev/packages/responsive_sizer
from sizer.
I faced the same issue recently with my App, in debugging it is working properly but after release I need to do refresh to the app, sometimes optimizing my phone then it might work, yesterday I removed all the the .h & .w from the main screen & replace them with int Numbers & the app was working in a good way except the fonts since i was was using .sp for the font size... also the strange thing is the same is affecting the main screen only, other screens are working in a good way.
this is what happened:
and this is the original screen.
from sizer.
Thank you samerjallad for your support. I think I should try it.
I also found a solution. I added a splash screen for 1 second. I worked too.
from sizer.
Related Issues (20)
- Blank White Page with GetMaterialApp HOT 2
- Different values on the same page? HOT 1
- README HOT 1
- Unverified uploader on pub.dev
- Getting white screen in release app when i am using sizer along with blocProvider HOT 2
- How Sizer knows the height and width of the screen, is it based on px or dp?
- Please add iconSize and radius
- LateError (LateInitializationError: Field 'width' has not been initialized.) HOT 3
- Font size problem HOT 1
- Orientation
- .h is not working in windows
- Is this project alive or not active? HOT 3
- : Error: The getter 'h' isn't defined for the class 'int'.
- font size is not accurate
- Dear please update this package for flutter 3.10 please
- Assignment of variables is not supported
- The method 'ResponsiveSizer' isn't defined for the type 'MyApp HOT 3
- Create Flutter Release Build To Many Type Size not Support To Using Sizer
- update for flutter 3.13 please HOT 1
- Sizer not working with routes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sizer.