build method
Widget
build({
- BuildContext? context,
- ARViewCreatedCallback? arViewCreatedCallback,
- 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 UiKitView(
viewType: viewType,
layoutDirection: TextDirection.ltr,
creationParams: creationParams,
creationParamsCodec: const StandardMessageCodec(),
onPlatformViewCreated: onPlatformViewCreated,
);
}