-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Make integration via Android FlutterView easier #7785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm repurposing this bug as the meta bug |
Giving it a try. It's not amazing but it's not horrible either. For the first phase of flutter/flutter#72009, documentation is acceptable. |
There's an integration sample now at https://github.com/flutter/samples/tree/master/add_to_app/android_view. Add some short pointers to the sample as a sibling to https://flutter.dev/docs/development/add-to-app/android/add-flutter-screen |
We could theoretically still add some automatic magic or helpers around it. But a doc will go 80% of the way currently #5243. |
I think the docs are sufficient for now. Closing |
Publish a website guide that explains how to use Flutter with a FlutterView on Android.
FlutterView is the finest grained, and almost most tedious approach to including Flutter in an Android app. There are some cases where a FlutterView is the only option, e.g., within a ListView or RecyclerView. There may also be some other edge cases where a developer needs to place Flutter within the View hierarchy but cannot otherwise use a Fragment. These are the cases for a FlutterView.
A FlutterView will require a number of signals forwarded from the Activity level, as well as many lifecycle calls that either originate at the Activity or Fragment level.
Please ensure that this guide is written against the newest version of the Android embedding.
The text was updated successfully, but these errors were encountered: