Add a note about the Android API level requirement for AndroidView. (#21386)

This commit is contained in:
Amir Hardon 2018-09-05 11:33:19 -07:00 committed by GitHub
parent fc8dbd3c44
commit bae44b29df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -38,6 +38,8 @@ enum _PlatformViewState {
/// A render object for an Android view.
///
/// Requires Android API level 20 or greater.
///
/// [RenderAndroidView] is responsible for sizing, displaying and passing touch events to an
/// Android [View](https://developer.android.com/reference/android/view/View).
///

View file

@ -13,6 +13,8 @@ import 'framework.dart';
/// Embeds an Android view in the Widget hierarchy.
///
/// Requires Android API level 20 or greater.
///
/// Embedding Android views is an expensive operation and should be avoided when a Flutter
/// equivalent is possible.
///