1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
Files
samples/platform_view_swift
Andrew Brogdon 0eb1233cb4 Updates samples for latest beta release of the Flutter SDK (#492)
* Updating for beta release

* Re-adding pub get to Flutter travis script
2020-08-05 08:05:31 -07:00
..
2020-01-14 06:14:13 +10:00
2020-05-13 09:18:26 +10:00
2020-05-13 09:18:26 +10:00

platform_view_swift

A Flutter sample app that combines a native iOS UIViewController with a full-screen Flutter view.

Goals for this sample

  • Show a simple technique for combining native and Flutter views.

The important bits

lib/main.dart

The Flutter part of the application is quite simple, and all the action takes place in a single file.

ios/Runner/PlatformViewController.swift and AppDelegate.swift

These files contain the Swift code repsonsible for setting up a platform channel, launching a native UIViewController, and returning control to Flutter when finished.

Questions/issues

If you have a general question about Flutter, the best places to go are:

If you run into an issue with the sample itself, please file an issue in the main Flutter repo.