fluttercommunity / fluttercommunity/platform_maps_flutter

"My Location"-button and compass are overlaid when an apple map is shown in full screen

Open
#42 2 comments 0 reactions 1 assignee Claimed by @LuisThein View on GitHub
bug
Dominant language
Dart
Stars
83
Forks
72
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The location button and the compass are overlapping.

**To Reproduce**

Open the map in full screen like so
```
showGeneralDialog(
context: context,
pageBuilder: (context, _, __) {
return PlatformMap(
initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
myLocationEnabled: true,
myLocationButtonEnabled: true,
);
},
);
```

**Expected behavior**
The location button should have an offset relative to the safe area, not to the screen. Just like the compass does.

**Screenshots**
![81ACB5AD-73BF-47D0-B074-AA563755B175](https://user-images.githubusercontent.com/12631527/133905899-28bfbe44-6821-493d-bf04-41db12b0eb6b.png)

**Smartphone (please complete the following information):**
- Device: iPhone 12 pro
- Version 1.0.2

**flutter doctor**
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.4 20F71 darwin-x64, locale en-US)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.60.1)
[✓] Connected device (2 available)
! Error: i is busy: Copying cache files from device. Xcode will continue when i is finished. (code -10)

! Doctor found issues in 2 categories.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.