Code Monkey home page Code Monkey logo

Comments (3)

supermarcos avatar supermarcos commented on May 28, 2024

Hi @crezoKind,

In the widget zoom_scaffold.dart there is a function called toggle which is the one called when opening and closing the menu. MenuState already has two states, closed and open and that function checks which one is in this moment to call either open or close functions.
If you want to close it yourself, I would say you could call the toggle function or the close one directly and both seem to be right for what you want.

You may need to change the way the menulist is built tho, in this sample is fine to have a list built like that, but it is harder to get hold to the index of the element you pressed and less performing than using a listview builder.
Check out this example: https://stackoverflow.com/questions/47085070/how-to-get-the-index-key-of-the-selected-item-in-the-list-flutter

Hope this helps
:)

from flutter_delivery.

UnluckyY1 avatar UnluckyY1 commented on May 28, 2024

Hi Iam new to flutter Am doing a School project and am trying to add slide menu to my project with the animation but had so many issue to add my body screen code to it can u help with that

from flutter_delivery.

VigneswaranMuruganandan avatar VigneswaranMuruganandan commented on May 28, 2024

How to close the menu on tap in the ListTile. MenuController is not available in the Menuscreen. How to include MenuController in Menuscreen.
@pedromassango Please can u please split the ZoomScaffold class into separate.
I'm new to flutter, so it will be helpful for understanding.

from flutter_delivery.

Related Issues (10)

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.