Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual display hosting mode on Android #754

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### main

* Update Maps SDK to 11.8.0-rc.1
* Updated the minimum required Flutter SDK to version 3.22.3 and Dart to version 3.4.4. With the fix for Virtual Display hosting mode on Android in Flutter 3.22, we’ve changed the default map view hosting mode to Virtual Display composition. This update should eliminate the brief visibility of the map after it has been dismissed.
* Update Maps SDK to 11.8.0-rc.1.

# 2.4.0-beta.1

Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -487,5 +487,5 @@ packages:
source: hosted
version: "1.0.4"
sdks:
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
dart: ">=3.4.4 <4.0.0"
flutter: ">=3.22.3"
2 changes: 1 addition & 1 deletion lib/src/map_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MapWidget extends StatefulWidget {
// FIXME Flutter 3.x has memory leak on Android using in SurfaceView mode, see https://github.com/flutter/flutter/issues/118384
// As a workaround default is true.
this.textureView = true,
this.androidHostingMode = AndroidPlatformViewHostingMode.HC,
this.androidHostingMode = AndroidPlatformViewHostingMode.VD,
this.styleUri = MapboxStyles.STANDARD,
this.gestureRecognizers,
this.onMapCreated,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 2.4.0-beta.1
homepage: https://github.com/mapbox/mapbox-maps-flutter

environment:
sdk: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
sdk: ">=3.4.4 <4.0.0"
flutter: ">=3.22.3"

dependencies:
flutter:
Expand Down