-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Widget inspector is not working #16
Comments
@nt4f04uNd, We also tried to run on Flutter version 3.13. To no avail |
Hi This is bug a in Flutter SDK When AndroidContentProvider is created, it first creates its own engine. I digged a bit, but I don't think there is an easy way to properly fix this on our side. But there is a workaround for it, which you can use when you need to access devtools. package com.nt4f04und.android_content_provider_example
import android.os.Handler
import android.os.Looper
import com.nt4f04und.android_content_provider.AndroidContentProvider
class MyAndroidContentProvider : AndroidContentProvider() {
override val authority: String = "com.nt4f04und.android_content_provider_example.MyAndroidContentProvider"
override val entrypointName = "exampleContentProviderEntrypoint"
override fun onCreate(): Boolean {
Handler(Looper.getMainLooper()).postDelayed({
super.onCreate()
}, 2000)
return true
}
} Let me know if that works for you and I could put that into README |
Thanks for the quick response. |
Hi! Thanks for the plugin!
There is an error with widget inspector. It does not start when the project has a custom ContentProvider.
On your example_provider it's also not working. How can we solve this problem?
The text was updated successfully, but these errors were encountered: