Comments (6)
Agreed. @mpcomplete looked into this briefly, but we don't yet have a way to override this behavior.
from flutter.
This should be relatively easy since all you really need is to capture this in java layer and call some dart hook to decide whether the app should handle it or not. See http://developer.android.com/reference/android/app/Activity.html#onBackPressed() The only thing is I am not sure if it can be done in an async way and whether that's a requirement for you.
from flutter.
The reason it's hard is that we need to figure out what it should mean.
from flutter.
Anyway, this is covered by https://github.com/domokit/mojo/issues/155 .
from flutter.
I'm posting this here in case anyone out there finds this and wishes they would find a simple example
https://gist.github.com/b-cancel/0ca372017a25f0c120b14dfca3591aa5
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- RBE refactor - build fails to copy MacOSX SDK due to `Too many levels of symbolic links` HOT 7
- Web app with multiple platform views overlayed with Flutter widgets failing on Firefox HOT 10
- Failing integration test due to system dialogs HOT 13
- file_selector_android_example/MainActivityTest.java uses or overrides a deprecated API HOT 10
- [CP] Use Mac M1s or x86 wherever possible HOT 1
- [CP] Migrate verify_codesigned. HOT 1
- [skwasm] Disabled `ActionChip` with label and avatar fails to render contents
- [skwasm] `InputChip` delete icon hover square is not centered HOT 2
- [skwasm] Text input decorations and text are often invisible
- [file_selector] Selecting very large files on Android causes OOM crash HOT 4
- Finished with error: Package(s) require the native assets feature. This feature has not yet been implemented for `TargetPlatform.android_arm64` HOT 1
- [Android] TakeSnapshot Crashes app HOT 10
- Null check operator used on a null value for paragraph.dart HOT 11
- Better support similar to Android .9(nine patch) picture
- Depreciated Members when customizing `RenderView` class to use `compositeFrame` function. HOT 3
- [tool_crash] SessionNotCreatedException HOT 2
- [tool_crash] FileSystemException: Creation failed, OS Error: No such file or directory, errno = 2 HOT 3
- > Channel dev, 3.4.0-17.2.pre HOT 2
- i when i am loading html and js file in webview from local acceste it's can't load my js file HOT 3
- [CP-request] Migrate event that is sent with every command for analytics in latest stable HOT 4
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 flutter.