build method

  1. @override
Widget build({
  1. BuildContext? context,
  2. ARViewCreatedCallback? arViewCreatedCallback,
  3. PlaneDetectionConfig? planeDetectionConfig,
})
override

Implementation

@override
Widget build(
    {BuildContext? context,
    ARViewCreatedCallback? arViewCreatedCallback,
    PlaneDetectionConfig? planeDetectionConfig}) {
  _context = context;
  _arViewCreatedCallback = arViewCreatedCallback;
  _planeDetectionConfig = planeDetectionConfig;
  // This is used in the platform side to register the view.
  final String viewType = 'ar_flutter_plugin_flutterflow';
  // Pass parameters to the platform side.
  final Map<String, dynamic> creationParams = <String, dynamic>{};

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