mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

MapboxMap().getSize throws exception

Open artemsorochan opened this issue 2 years ago • 3 comments

This issue is reproduced on iOS only with example project in map_interface.dart when calling MapboxMap().getSize()

Unhandled Exception: PlatformException(0, Not available., null, null) #0 _MapInterface.getSize (package:mapbox_maps_flutter/src/pigeons/map_interfaces.dart:3035:7)

Flutter (Channel stable, 3.7.7)

artemsorochan avatar Mar 27 '23 17:03 artemsorochan

I have faced same issue, do you have solve it ?

yazeed-mohammad avatar Apr 17 '23 13:04 yazeed-mohammad

I have faced same issue, do you have solve it ?

No, our map is using full width, and instead we use MediaQuery.of(context).size.width

artemsorochan avatar Apr 17 '23 13:04 artemsorochan

Hey 👋, Any news about it? It is coming from the package and not our code right?

edit: The method is not supported on iOS

Bazni avatar Jun 19 '24 07:06 Bazni