diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b428d9f..07d531b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/example/pubspec.lock b/example/pubspec.lock index a1566fd9..878e05d8 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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" diff --git a/lib/src/map_widget.dart b/lib/src/map_widget.dart index c27af13f..af945a60 100644 --- a/lib/src/map_widget.dart +++ b/lib/src/map_widget.dart @@ -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, diff --git a/pubspec.yaml b/pubspec.yaml index f9be0ffc..ba716b11 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: