GithubHelp home page GithubHelp logo

Comments (7)

mxlandry avatar mxlandry commented on August 22, 2024 1

I tested out the work around and it works fine. Thanks man!
I'll check for updating the code when the functionality is ready 👍

from custom-navigator.

ayham95 avatar ayham95 commented on August 22, 2024

Hello @mxlandry!
In order for the AppBar to appear you need to set a Scaffold and an AppBar for every page in your navigation.

Refer to this custom_scaffold_example for more information.

Hope this helped!
I'll close the issue for now, reopen anytime i'll be here to help
Also, please add any suggestions for new features for this library, i'd be more than happy to add them.

from custom-navigator.

mxlandry avatar mxlandry commented on August 22, 2024

The AppBar appear, but the backButton is not there. If a set my widget for building a Scaffold with an AppBar I have two AppBar and the second one contains the back button.

from custom-navigator.

ayham95 avatar ayham95 commented on August 22, 2024

Oh ok, now i got it.
I'll update the CustomScaffold so it can do exactly what you want to achieve.
Is it ok for to use the CustomScaffold? It's a widget exactly like the normal scaffold but with added functionalities.
I'll push the update in 4 hours from now.

Let me know if you're ok with it.
Thank you!

from custom-navigator.

mxlandry avatar mxlandry commented on August 22, 2024

I'm using the PlatformScaffold (https://pub.dev/packages/flutter_platform_widgets) for styling the Scaffold differently on Android and iOS.
If it's possible, I would prefer to not use CustomScaffold but if it's not I will consider testing the CustomScaffold.

Thanks!

from custom-navigator.

ayham95 avatar ayham95 commented on August 22, 2024

I’ll be sorry to tell you that there’s no direct solution for your problem at the moment..

That being said there’s a work around.
You need to remove the AppBar from your main Scaffold and put it in every page down the widget tree instead.
This way you’ll force the AppBar to update when navigating.

Also you can refer to custom_scaffold_example to see a similar example.

I’ll make sure to add the functionality you required in the coming days. 🙏🏼

from custom-navigator.

ayham95 avatar ayham95 commented on August 22, 2024

Glad it worked for you!
I’ll close this for now.
Best wishes! 🙏🏼

from custom-navigator.

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.