Code Monkey home page Code Monkey logo

Comments (6)

emanuel-braz avatar emanuel-braz commented on June 1, 2024 1

@muneeb-wecrunch @rishli @bitores
Hey guys, I'm going to work on this tomorrow, and try to release this update on weekend

from one_context.

emanuel-braz avatar emanuel-braz commented on June 1, 2024

Hi @bitores
If you need to close dialogBoxes you just need to call OneContext().popDialog()
If you need close dialogs when android button is pressed, please await for the next release, this feature will be delivered soon.

The dialogBoxes in this package is not intended to be closed automatically when a route pops(Android back pressed), the behavior expected is to close the dialogs(if visible) first and after that, close the page.

I hope I managed to answer you, if not, please, leave a comment. I would appreciate sugestions too.

from one_context.

emanuel-braz avatar emanuel-braz commented on June 1, 2024

Hi @bitores, please, can you check this branch if it works for your needs?

Configure the one_context package's dependency to the github in pubspec.yaml

  one_context:
    git:
      url: git://github.com/emanuel-braz/one_context.git
      ref: feature/android-backbutton

from one_context.

rishli avatar rishli commented on June 1, 2024

Hi @bitores, please, can you check this branch if it works for your needs?

Configure the one_context package's dependency to the github in pubspec.yaml

  one_context:
    git:
      url: git://github.com/emanuel-braz/one_context.git
      ref: feature/android-backbutton

Please release the official version, thank you.

from one_context.

muneeb-wecrunch avatar muneeb-wecrunch commented on June 1, 2024

@emanuel-braz still not fixed in the latest version.

from one_context.

emanuel-braz avatar emanuel-braz commented on June 1, 2024

Closing this issue with PR #15

Dialogs and Modal bottom sheets will be closed automatically with back button(android).

If you need close all dialogs, even if you do not know how many is open, you can call popAllDialogs() (for example before screen transition)

If you do not want dialogs get closed automatically, then use barrierDismissible or isDismissible == false, for Dialogs and ModalBottomSheet respectively.

Snackbars and BottomSheets keep opened, since they does not return a compatible "Future". Making changes on that, lead to cause break changes and actually I'm not sure if this behavior is appropriate for that components.

from one_context.

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.