josxha / flutter_map_plugins

The source code for all sorts of flutter_map plugins.
https://pub.dev/publishers/joscha-eckert.de/packages
29 stars 21 forks source link

[BUG] MapCompass alignment not working #39

Closed DmitriySimonov closed 7 months ago

DmitriySimonov commented 7 months ago

Package

flutter_map_compass

Bug Description

MapCompass alignment not working

Steps to Reproduce

Add code MapCompass in FlutterMap

flutter doctor

[✓] Flutter (Channel stable, 3.19.5, on Ubuntu 22.04.4 LTS 5.15.0-101-generic, locale ru_RU.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.2)
[✓] Connected device (3 available)
[✓] Network resources

Expected Results

The compass is expected to be top left

Actual Results

But the compass on the top right Screenshot_20240403_152806

Code Sample

FlutterMap(
        options: MapOptions(),
        children: [
          ...
          MapCompass(
            icon: SvgPicture.asset(Const.IMAGE_COMPASS, height: sizeCompassMaker),
            alignment: Alignment.topLeft,
          ),
        ],
      ),

Platforms

android

josxha commented 7 months ago

Thanks a lot for submitting the bug report @DmitriySimonov. I'll be fixed within https://github.com/josxha/flutter_map_plugins/pull/40.