Comments (14)
@lucasagazzani could you provide a video?
from google_nav_bar.
https://linksharing.samsungcloud.com/u7DcZPRmm9G7
from google_nav_bar.
@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.
This is how I have been calling them:
onTap: () { Navigator.push( context, MaterialPageRoute( builder: (BuildContext context) => LiveTab()), ); },
from google_nav_bar.
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.
I am sorry man but that hasn't fixed the issue
from google_nav_bar.
@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.
I have removed all material app theme and replaced it how you asked me
from google_nav_bar.
I can't remove the MaterialApp in this case because the scaffold needs it
from google_nav_bar.
Scaffold won't be a problem when everything is wrap under one big MaterialApp widget during runApp
from google_nav_bar.
ok, I thought you might be asking to remove it. Any other thought on what it could be?
from google_nav_bar.
@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.
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.
from google_nav_bar.
Related Issues (20)
- How to center the icon without text? HOT 5
- setState() called after dispose() HOT 11
- Set the height of the navigation bar
- Make the state class _GNavState public HOT 12
- how to remove elevation from the nav bar HOT 3
- how to make resize screen ? HOT 3
- Feature request : Add color/gradient for unselected tab background HOT 1
- Debug console shows this message "ensureControlAlpha: for ITYPE_NAVIGATION_BAR" when GNav does not show? HOT 1
- Change icon type; use Widget instead of IconData HOT 1
- How to stop clicking and changing status HOT 1
- How to me Floating action Button center docked with this Bottom AppBar HOT 2
- Could you add elevation for the selected tab? HOT 1
- The bar overflows on small screens and throws error HOT 3
- how to navigate between pages HOT 3
- Nothing Find For Implement for own coustom icon
- GNav
- How can I set the fixed length of the activated GButton? HOT 2
- How can i disable tabs? HOT 2
- Create Vertical nav bar using google_nav_bar
- Icon and text mis-allign HOT 1
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 google_nav_bar.