Skip to content
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

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

Open
yspreen opened this issue Sep 18, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yspreen
Copy link

yspreen commented Sep 18, 2021

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

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.
@yspreen yspreen added the bug Something isn't working label Sep 18, 2021
@yspreen
Copy link
Author

yspreen commented Sep 18, 2021

Workaround: padding: EdgeInsets.only(top: 64),

Moves the compass down while keeping the button pos.

@yspreen
Copy link
Author

yspreen commented Sep 19, 2021

it does actually seem like full-screening the widget is a bad idea on both platforms. For android, the location button is on the right while the compass is on the left, but the full-screen version is obfuscated by the status bar:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants