mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
bb3c660522
commit
0d8959448c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user