Skip to content

Commit 240f26a

Browse files
cbrackenchristopherfujino
authored andcommitted
[iOS,macOS] Clean up obsolete PlatformView warning (flutter#135040)
PlatformViews have been supported without a custom engine build on iOS for quite some time now, and are nearing support for macOS. Adds a link to the website documentation covering creation of PlatformViews for iOS and adds a TODO to do the same once the macOS PlatformView documentation is ready. Related: flutter/website#9424
1 parent 861d330 commit 240f26a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/flutter/lib/src/services/platform_views.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,7 @@ class PlatformViewsService {
201201
return controller;
202202
}
203203

204-
// TODO(amirh): reference the iOS plugin API for registering a UIView factory
205-
// once it lands.
206-
207-
/// This is work in progress, not yet ready to be used, and requires a custom
208-
/// engine build. Creates a controller for a new iOS UIView.
204+
/// Factory method to create a `UiKitView`.
209205
///
210206
/// The `id` parameter is an unused unique identifier generated with
211207
/// [platformViewsRegistry].
@@ -218,6 +214,8 @@ class PlatformViewsService {
218214
/// The `onFocus` parameter is a callback that will be invoked when the UIKit
219215
/// view asks to get the input focus. If `creationParams` is non null then
220216
/// `creationParamsCodec` must not be null.
217+
///
218+
/// See: https://docs.flutter.dev/platform-integration/ios/platform-views
221219
static Future<UiKitViewController> initUiKitView({
222220
required int id,
223221
required String viewType,
@@ -249,6 +247,8 @@ class PlatformViewsService {
249247
return UiKitViewController._(id, layoutDirection);
250248
}
251249

250+
// TODO(cbracken): Write and link website docs. https://github.com/flutter/website/issues/9424.
251+
//
252252
/// Factory method to create an `AppKitView`.
253253
///
254254
/// The `id` parameter is an unused unique identifier generated with

0 commit comments

Comments
 (0)