Coder Social home page Coder Social logo

Comments (14)

sooxt98 avatar sooxt98 commented on May 11, 2024

@lucasagazzani could you provide a video?

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

https://linksharing.samsungcloud.com/u7DcZPRmm9G7

from google_nav_bar.

sooxt98 avatar sooxt98 commented on May 11, 2024

@lucasagazzani this might be the nesting issue with your router, you need to use parent scaffold context to call Navigator.push

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

This is how I have been calling them:
onTap: () { Navigator.push( context, MaterialPageRoute( builder: (BuildContext context) => LiveTab()), ); },

from google_nav_bar.

sooxt98 avatar sooxt98 commented on May 11, 2024

The problem here is you use two MaterialApp in your code, you need to remove one;

So change ur main to this

void main() => runApp(MyApp());

Then move your darkTheme: ThemeData.light() into the bottom MaterialApp

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

I am sorry man but that hasn't fixed the issue

from google_nav_bar.

sooxt98 avatar sooxt98 commented on May 11, 2024

@lucasagazzani did u removed all MaterialApp widget? U could only use one MaterialApp in a whole flutter project; and also try to remove Navigator widget if any

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

I have removed all material app theme and replaced it how you asked me

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

I can't remove the MaterialApp in this case because the scaffold needs it

from google_nav_bar.

sooxt98 avatar sooxt98 commented on May 11, 2024

Scaffold won't be a problem when everything is wrap under one big MaterialApp widget during runApp

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

ok, I thought you might be asking to remove it. Any other thought on what it could be?

from google_nav_bar.

sooxt98 avatar sooxt98 commented on May 11, 2024

@lucasagazzani the only reason that u get this issue is because you use more than one MaterialApp widget in your single project

from google_nav_bar.

lucasagazzani avatar lucasagazzani commented on May 11, 2024

Ok, I found the page that had the extra MaterialApp now this issue is solved but do you know by any chance why themedata is not trasnfering to this page? Thank you for your help.

from google_nav_bar.

sooxt98 avatar sooxt98 commented on May 11, 2024

from google_nav_bar.

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.