Coder Social home page Coder Social logo

Comments (4)

samerjallad avatar samerjallad commented on May 19, 2024 3

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.

kaustuv-praz avatar kaustuv-praz commented on May 19, 2024 1

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.

samerjallad avatar samerjallad commented on May 19, 2024

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:
WhatsApp Image 2021-10-28 at 9 18 04 PM
and this is the original screen.
WhatsApp Image 2021-10-28 at 9 18 03 PM

from sizer.

Sameera-Perera avatar Sameera-Perera commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.