Comments (10)
Yes, it is expected behaviour.
The code that does it is at -
backdrop/lib/src/scaffold.dart
Lines 617 to 619 in d21cfaa
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.
OR
You can file a PR to make this behaviour optional adding option bool concealBacklayerOnBackButton = true
to BackdropScafold
from backdrop.
@WieFel filled PR please review
from backdrop.
@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.
In my opinion this is the expected behavior.
@daadu what do you think?
from backdrop.
@WieFel You may right, how can i prevent this behavior now?
from backdrop.
@WieFel What do you think of this option?
from backdrop.
@daadu yeah we can add the option
from backdrop.
Yes, it is expected behaviour.
The code that does it is at -
backdrop/lib/src/scaffold.dart
Lines 617 to 619 in d21cfaa
Wrapping another
WillPopScope
aroundBackdropScaffold
, might not work - because I think flutter will also call the code insidebackdrop
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.
i solved closing frontLayer
when visibility of that is true
from backdrop.
Related Issues (20)
- Merge example and demo project HOT 5
- Abstract out "backdrop core" from `BackdropScaffold`
- Add a shadow to the front layer
- Custom shape on the front layer HOT 7
- How to show back layer without scrim on front? HOT 5
- Slivers AppBar HOT 7
- cannot paste if backdrop is revealed HOT 6
- I can't get edge swipe to go back to work with BackdropScaffold. Any helpful tips? HOT 1
- flutter beta: SchedulerBinding is now null-safe HOT 2
- BoxShadow on front layer HOT 3
- Backdrop is not compiling after upgrading to Flutter 3.10 HOT 2
- En Flutter 3.10 no compila Por 2 Lineas en el Widget AppBar (brightness y textTheme), las cuales estan en desuso pero el compilador las toma en cuenta, eliminando esas 2 lines el paquete funciona perfectamente HOT 3
- Variable to know if back layer is expanded or collapsed HOT 1
- Manually opening Backdrop HOT 9
- Reveal backlayer with natural gestures HOT 1
- Make a parameter out of front layer elevation HOT 6
- BackdropScaffold usage gif example needs an update! HOT 1
- Avoid SubHeader spawn on top of Front Layer HOT 2
- Use AppBar.SystemOverlayStyle instead of AppBar.Brightness HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backdrop.