-
Notifications
You must be signed in to change notification settings - Fork 548
Support Flutter 3 #1059
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
Support Flutter 3 #1059
Conversation
felix-ht
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not merge this until flutter released a new version with the required hotfix.
|
Testing with |
|
This PR will work on Flutter |
Remove hybrid composition
mapbox_gl:
git:
url: https://github.com/flutter-mapbox-gl/maps.git
ref: fix-flutter-3@AAverin I did this and I still have the overlapping problem, I'm using flutter on the master channel. Am I doing things wrong? |
Android 9 map performance is so much better with this (Xperia XZ Premium) but on the other side, app performance in general is very poor. So much that the app is unusable (10-20 fps). Same with hybrid composition enabled in the previous versions. |
|
@LjubiTech-Maxko So the map is smooth but the rest of the flutter app is lagging? |
|
I can also confirm overlap issue when navigating to another screen in Flutter |
|
@AAverin can you add a screenshot and reference this branch to the flutter/flutter ticket? |
I was too tired with the issue so I downgraded to flutter 2, I didn't care about Material 3 support, though it's nice so yeah... |
ScreenRecord-2022-05-23-18-14-06.mp4Couldn't reproduce with a sample app yet. |
|
A random native NPE: |
flutter-2.10.5_hybridCompositionEnabled.mp4flutter-master.mp4flutter-2.10.5_hybridCompositionDisabled.mp4@felix-ht On flutter-master video app performance looks better that the other 2 but with Flutter Performance best was with hybrid composition disabled (55-60 fps) |
|
@LjubiTech-Maxko please add this information to the flutter/flutter ticket or create a new one there - this feels more like a flutter issue than a maps issue. |
|
This ticket on Flutter seems related: flutter/engine#33599 |
|
The widget tree |
|
PR is blocked by flutter/flutter#103630 and flutter/engine#33599. |
|
i looked discussions for this pr to members with write access - if you want ask questions please do so in #1041 |
|
@AAverin seems like the fixes have landed on flutter master 3 days ago - can you check with that? |
|
@felix-ht Because it was a rollback, no changes should be necessary anymore. |
|
This is the only thing that I keep getting no on latest Flutter. We would need another PR to fix that somehow: |
|
@AAverin can you post the error in the flutter git repo? (with steps for reproduction) |
|
@felix-ht I think this will need more investigation. Next 2 weeks I am on vacation and will most likely don't have enough time to investigate myself. The exception issue shouldn't be related to VirtualDisplay that was rolled back. Still, it looks to be another issue with Flutter 3 because I start getting it as soon as use Flutter 3. Exception comes from the native library that is out of our control, but it seems to be caused by some changes in Flutter 3. I would say that this exception will be a blocker for this library to be fully migrated to Flutter 3. You can reproduce exception by running examples we have. |
|
I am closing this PR as no changes are required. |

Fixes #1041
Switch to flutter 3 and new dart
Remove hybrid compositio