From 0d8959448c5b4cf6d424f5eb5a73ae477a5744f6 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 14 May 2019 21:27:34 -0700 Subject: [PATCH] Correct platform reference in UiKitViewController (#32724) Correct docs and error message for UiKitViewController to refer to iOS view rather than Android views. Minor cleanup to the docs for PlatformViewsService, which previously mentioned Android only. --- packages/flutter/lib/src/services/platform_views.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/services/platform_views.dart b/packages/flutter/lib/src/services/platform_views.dart index 983ee54333e..bfcddea3990 100644 --- a/packages/flutter/lib/src/services/platform_views.dart +++ b/packages/flutter/lib/src/services/platform_views.dart @@ -46,7 +46,7 @@ typedef PlatformViewCreatedCallback = void Function(int id); /// Provides access to the platform views service. /// -/// This service allows creating and controlling Android views. +/// This service allows creating and controlling platform-specific views. /// /// See also: [PlatformView]. class PlatformViewsService { @@ -623,9 +623,9 @@ class UiKitViewController { TextDirection _layoutDirection; - /// Sets the layout direction for the Android view. + /// Sets the layout direction for the iOS UIView. Future setLayoutDirection(TextDirection layoutDirection) async { - assert(!_debugDisposed, 'trying to set a layout direction for a disposed Android View. View id: $id'); + assert(!_debugDisposed, 'trying to set a layout direction for a disposed iOS UIView. View id: $id'); if (layoutDirection == _layoutDirection) return;