Replies: 2 comments
-
I faced the same issue with AR view for Flutter. First of all I created my own lifecycle owner and then called it when needed. Everything worked, but it was not comfortable. But now that the guys have updated the library 'io.github.sceneview:arsceneview:2.0.2' - everything works without any custom lifecycle classes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
have u checked out https://github.com/SceneView/sceneview-flutter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonna AR view for Flutter
When I add module to the app, there is no exception, but just black view on the screen.
Put your attention that:
FlutterFragmentActivity extends FragmentActivity.
I'll be glad to read any suggestions.
Code:
package com.epam.arquest.ar_quest_plugin
import android.content.Context
import android.graphics.Color
import android.view.View
import android.widget.TextView
import io.flutter.plugin.platform.PlatformView
import io.github.sceneview.ar.ArSceneView
import io.github.sceneview.ar.arcore.ArSession
import io.github.sceneview.math.Position
import io.github.sceneview.math.Rotation
import io.github.sceneview.math.Scale
import io.github.sceneview.node.ModelNode
internal class ARView(
private val context: Context,
id: Int,
creationParams: Map<String?, Any?>?
) : PlatformView {
}
Upd: If someone has the same issue. I solved it in this way: I replaced dependency 'io.github.sceneview:arsceneview:0.9.0' with "com.gorisse.thomas.sceneform:sceneform:1.21.0". I handled activity lifecycle callbacks by myself and called arSceneView.resume() in onResume() method.
So, it seems like io.github.sceneview:arsceneview can be used in application module only.
Beta Was this translation helpful? Give feedback.
All reactions