8000 Make integration via Android FlutterView easier · Issue #7785 · flutter/website · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Closed
matthew-carroll opened this issue Sep 13, 2018 · 6 comments
Closed

Make integration via Android FlutterView easier #7785

matthew-carroll opened this issue Sep 13, 2018 · 6 comments
Labels
cl.fixed Issue is closed as fixed dev.existing-apps Relates to integrating Flutter into existing apps from.flutter-sdk Reported via move from flutter/flutter

Comments

@matthew-carroll
Copy link
Contributor
matthew-carroll commented Sep 13, 2018

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.

@xster
Copy link
Member
xster commented Dec 3, 2020

I'm repurposing this bug as the meta bug

@xster xster changed the title Website Guide: Adding Flutter an app via FlutterView Make integration via Android FlutterView easier Dec 3, 2020
@xster
Copy link
Member
xster commented Dec 3, 2020

@xster
Copy link
Member
xster commented Dec 19, 2020

Giving it a try. It's not amazing but it's not horrible either.

https://github.com/flutter/samples/pull/632/files#diff-4e97c4f90dafb45f72a76cc0ab3296fb288e056fb091def0ebc9fe283b50749cR1

For the first phase of flutter/flutter#72009, documentation is acceptable.

@xster
Copy link
Member
xster commented Jan 28, 2021

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

@xster
Copy link
Member
xster commented Feb 1, 2021

We could theoretically still add some automatic magic or helpers around it. But a doc will go 80% of the way currently #5243.

@xster
Copy link
Member
xster commented Dec 4, 2022

I think the docs are sufficient for now. Closing

@xster xster closed this as completed Dec 4, 2022
@danagbemava-nc danagbemava-nc added the cl.fixed Issue is closed as fixed label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cl.fixed Issue is closed as fixed dev.existing-apps Relates to integrating Flutter into existing apps from.flutter-sdk Reported via move from flutter/flutter
Projects
None yet
Development

No branches or pull requests

8 participants
0