sceneview-flutter icon indicating copy to clipboard operation
sceneview-flutter copied to clipboard

App crashes when using PlatformViewLink (but works with AndroidView)

Open engor opened this issue 11 months ago • 1 comments

The SceneView widget is based on PlanformViewLink. And example app crashes after I turn on camera permission.

Device: Samsung Galaxy S10

Solution: replace PlatformViewLink with AndroidView (don't know about possible disadvantages):

return AndroidView(
  viewType: viewType,
  layoutDirection: TextDirection.ltr,
  creationParams: creationParams,
  creationParamsCodec: const StandardMessageCodec(),
  onPlatformViewCreated: onPlatformViewCreated,
);

engor avatar Mar 01 '24 14:03 engor