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.
This commit is contained in:
Chris Bracken 2019-05-14 21:27:34 -07:00 committed by GitHub
parent bb3c660522
commit 0d8959448c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<void> 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;