To create a platform view on iOS,
use the following instructions:

On the Dart side

On the Dart side, create a Widget
and add the following build implementation,
as shown in the following steps.

In your Dart file, for example
do the following in native_view_example.dart:

Add the following imports:

    
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

Implement a build() method:

    
Widget build(BuildContext context) {
  // This is used in the platform side to register the view.
  const String viewType = '<platform-view-type>';
  // Pass parameters to the platform side.
  final Map<String, dynamic> creationParams = <String, dynamic>{};