Enabling platform views on iOS

In the early versions of the platform views features, it was only supported on Android. At the time of writing this book, the iOS implementation of embedding UIKitView is still in release preview. So, we need to change the application's ios/Runner/Info.plist file and add a specific setting:

<plist version="1.0">
<dict>
...
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
</dict>
</plist>

This will enable the functionality for iOS apps so that we can use the preview feature in our application. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.43.140