You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/platform_view_swift
Brett Morgan e2e2713986
Enforce `use_key_in_widget_constructors` and `file_names` lints (#913)
3 years ago
..
ios Update platform_view_swift (#234) 5 years ago
lib Enforce `use_key_in_widget_constructors` and `file_names` lints (#913) 3 years ago
test Maintenance updates for platform_view_swift (#151) 5 years ago
.gitignore Maintenance updates for platform_view_swift (#151) 5 years ago
.metadata Maintenance updates for platform_view_swift (#151) 5 years ago
README.md Typo fix in README.md (#777) 4 years ago
analysis_options.yaml Enforce `use_key_in_widget_constructors` and `file_names` lints (#913) 3 years ago
pubspec.lock Upgrade deps, format, fix web/filipino_cuisine (#898) 3 years ago
pubspec.yaml Upgrading samples to flutter_lints, part 1 of n (#804) 4 years ago

README.md

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 responsible 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.