Skip to content

Commit

Permalink
disabled hybrid composition do to various issues (flutter-mapbox-gl#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ht authored Apr 6, 2022
1 parent 574cf70 commit e15c6c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ class MapsDemo extends StatefulWidget {
class _MapsDemoState extends State<MapsDemo> {
@override
void initState() {
initHybridComposition();
super.initState();
}

/// Determine the android version of the phone and turn off HybridComposition
/// on older sdk versions to improve performance for these
///
/// !!! Hybrid composition is currently broken do no use !!!
Future<void> initHybridComposition() async {
if (!kIsWeb && Platform.isAndroid) {
final androidInfo = await DeviceInfoPlugin().androidInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ part of mapbox_gl_platform_interface;

class MethodChannelMapboxGl extends MapboxGlPlatform {
late MethodChannel _channel;
static bool useHybridComposition = true;
static bool useHybridComposition = false;

Future<dynamic> _handleMethodCall(MethodCall call) async {
switch (call.method) {
Expand Down

0 comments on commit e15c6c7

Please sign in to comment.