useAndroidViewSurface property
- @Deprecated('See https://pub.dev/packages/google_maps_flutter_android#display-mode')
Whether to render GoogleMap with a AndroidViewSurface to build the Google Maps widget.
This implementation uses hybrid composition to render the Google Maps Widget on Android. This comes at the cost of some performance on Android versions below 10. See https://flutter.dev/docs/development/platform-integration/platform-views#performance for more information.
Implementation
@Deprecated(
'See https://pub.dev/packages/google_maps_flutter_android#display-mode')
static bool get useAndroidViewSurface {
final GoogleMapsFlutterPlatform platform =
GoogleMapsFlutterPlatform.instance;
// if (platform is GoogleMapsFlutterAndroid) {
// return platform.useAndroidViewSurface;
// }
return false;
}
- @Deprecated('See https://pub.dev/packages/google_maps_flutter_android#display-mode')
Set whether to render GoogleMap with a AndroidViewSurface to build the Google Maps widget.
This implementation uses hybrid composition to render the Google Maps Widget on Android. This comes at the cost of some performance on Android versions below 10. See https://flutter.dev/docs/development/platform-integration/platform-views#performance for more information.
Implementation
@Deprecated(
'See https://pub.dev/packages/google_maps_flutter_android#display-mode')
static set useAndroidViewSurface(bool useAndroidViewSurface) {
final GoogleMapsFlutterPlatform platform =
GoogleMapsFlutterPlatform.instance;
// if (platform is GoogleMapsFlutterAndroid) {
// platform.useAndroidViewSurface = useAndroidViewSurface;
// }
}