Skip to content
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

Add to Android App - Starting with a Flutter screen #765

Closed
saurabhchalke opened this issue Mar 11, 2021 · 2 comments
Closed

Add to Android App - Starting with a Flutter screen #765

saurabhchalke opened this issue Mar 11, 2021 · 2 comments

Comments

@saurabhchalke
Copy link

saurabhchalke commented Mar 11, 2021

Hi, I was going through the Add to App Android Sample.
This example starts off with Kotlin and then navigates to Flutter.
Is there a way to start with a Flutter screen at the beginning and bypassing any Kotlin screens at all?
I am trying to tweak this example with Flutter -> Native -> Flutter flow.

Also, the Kotlin to Flutter navigation in the Android example seems to be slow on my device (Mi A2, Android 10), although Flutter to Kotlin seems to be quick.
Do you see any optimizations possible there?

@xster
Copy link
Member

xster commented Mar 11, 2021

Native->Flutter navigation will generally be slow in debug mode. Have you tried it in release mode yet?

@saurabhchalke
Copy link
Author

saurabhchalke commented Mar 11, 2021

You're right, I was testing it in debug mode, release is much better!

I am also able to initialize the App by navigating to Flutter screen in the onCreate() method.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants