Coder Social home page Coder Social logo

Comments (2)

kacpmu avatar kacpmu commented on June 9, 2024 1

By getting that value from the Scaffold's state I could provide very easy to use and more responsive implementation that does not require setup. Of course, I could pass current FAB location directly into the bottom app bar, but I would like to obtain this info without doing so, since it requires yet another state in your app to be properly managed or at least another place you need to put this info for your widget. On the other hand, Scaffold's state is already out there and may be utilized.

from flutter.

Piinks avatar Piinks commented on June 9, 2024

Hi @kacpmu, the ScaffoldState should not be needed to access the FloatingActionButtonLocation. By default it is FloatingActionButtonLocation.endFloat, otherwise it is whatever location you have provided to Scaffold.floatingActionButtonLocation. Is there a case that requires getting that value from the state of the Scaffold?

from flutter.

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.