Code Monkey home page Code Monkey logo

Comments (10)

daadu avatar daadu commented on August 21, 2024 1

Yes, it is expected behaviour.

The code that does it is at -

return WillPopScope(
onWillPop: () => _willPopCallback(context),
child: Scaffold(

Wrapping another WillPopScope around BackdropScaffold, might not work - because I think flutter will also call the code inside backdrop lib. Although you can give it a try.

As of now, you can fork and remove this widget from the library and use it.

from backdrop.

daadu avatar daadu commented on August 21, 2024 1

OR

You can file a PR to make this behaviour optional adding option bool concealBacklayerOnBackButton = true to BackdropScafold

from backdrop.

daadu avatar daadu commented on August 21, 2024 1

@WieFel filled PR please review

from backdrop.

daadu avatar daadu commented on August 21, 2024 1

@pishguy Thanks for filling the issue, the concealBacklayerOnBackButton option has been added and published to pub.dev with v0.9.1. Please check, you can disable this behaviour, by setting it false.

Also, check yourself out in the README.md!!

from backdrop.

WieFel avatar WieFel commented on August 21, 2024

In my opinion this is the expected behavior.
@daadu what do you think?

from backdrop.

pishguy avatar pishguy commented on August 21, 2024

@WieFel You may right, how can i prevent this behavior now?

from backdrop.

daadu avatar daadu commented on August 21, 2024

@WieFel What do you think of this option?

from backdrop.

WieFel avatar WieFel commented on August 21, 2024

@daadu yeah we can add the option

from backdrop.

pishguy avatar pishguy commented on August 21, 2024

Yes, it is expected behaviour.

The code that does it is at -

return WillPopScope(
onWillPop: () => _willPopCallback(context),
child: Scaffold(

Wrapping another WillPopScope around BackdropScaffold, might not work - because I think flutter will also call the code inside backdrop lib. Although you can give it a try.

As of now, you can fork and remove this widget from the library and use it.

i checked before it doesn't work correctly

from backdrop.

pishguy avatar pishguy commented on August 21, 2024

i solved closing frontLayer when visibility of that is true

pull request: 135

from backdrop.

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.