flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Widget Positioning #1155

Closed EveMoraga closed 2 years ago

EveMoraga commented 2 years ago

The widget is always positioned at the top of the screen. Cover the App Bar. It even sits at the top, even if you put it in a Stack

marcobraghim commented 2 years ago

Same here, I just can't define the position of the map, how can I solve it?

Screenshot_20220817-090111

marcobraghim commented 2 years ago

The solution on the issue #1008 works for me

mekkolodziejski commented 2 years ago

error is in SdkVersion > 31. After updated widgets and flutter(dart) cannot compile < 33

marcobraghim commented 2 years ago

@mekkolodziejski

Could you please explain it with more details?

mekkolodziejski commented 2 years ago

compileSdkVersion 33 error //31 work

aaptOptions {
    noCompress 'tflite'
    noCompress 'lite'
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.captoo.business"
    minSdkVersion 25
    targetSdkVersion 33 error //31 work
    versionCode 1
    versionName "1.0.0"
}
mekkolodziejski commented 2 years ago

the only thing left to do without fun is to undo the dependencies and flutter to the working version for me is flutter 2.10.5 sdk 2.16.2

marcobraghim commented 2 years ago

@mekkolodziejski sadly it doesn't seem to be the issue. I'm already using the version 31...

mekkolodziejski commented 2 years ago

@marcobraghim you have flutter 2.10.5 and dart 2.16.2? mapbox_gl: ^0.15.0?

marcobraghim commented 2 years ago

@mekkolodziejski Nop... Flutter 3 here... =/

mvarendorff commented 2 years ago

This was a bug in the Flutter engine currently powering the stable Flutter release. It's fixed on the Flutter beta channel. Related PR: https://github.com/flutter/engine/pull/33599

Duplicate issue: #1146