Questions tagged [fluttermap]
187 questions
123
votes
6 answers
How to add a new pair to Map in Dart?
I caught the following errors when adding a new pair to a Map.
Variables must be declared using the keywords const, final, var, or a type name
Expected to find;
the name someMap is already defined
I executed the following code.
Map…

hrsma2i
- 4,045
- 6
- 15
- 24
17
votes
3 answers
Disabling flutter_map package rotation in Flutter
How do you disable the rotation of the map in flutter_map?

João Martins
- 706
- 1
- 8
- 20
12
votes
1 answer
How can I paint a Widget on a Canvas in Flutter?
Is there any way to paint a Widget at a given position on a Canvas?
More specifically, I want to paint the child widgets of Marker's related to a FlutterMap on a separate Canvas in front of the actual FlutterMap widget. Here's an attempt at creating…

Magnus
- 17,157
- 19
- 104
- 189
8
votes
1 answer
Unexpected Response Code 400 from Google Maps in Flutter
I am working on a Flutter project and have to integrate Google Maps in my project. To do the same, I created a new project on Gogle console, added Maps SDK for android and other APIs I will need and took the key and copy pasted in my…

neerav94
- 429
- 1
- 8
- 15
5
votes
2 answers
The argument type 'Iterable' can't be assigned to the parameter type 'List'
Hi guys please i'm trying to map a list of strings in my code but its is give me the error "The argument type 'Iterable' can't be assigned to the parameter type 'List'.". I'm trying to reproduce the result in the picture below. Here is the code…

damigesh
- 73
- 1
- 1
- 3
4
votes
2 answers
The method 'map' was called on null. & Tried calling: map(Closure: (String) => Answer)
Error:
The following NoSuchMethodError was thrown building MyApp(dirty, state: _MyAppState#ad714):
The method 'map' was called on null.
Receiver: null
Tried calling: map(Closure: (String) => Answer)
my code:
import…

Renis
- 43
- 5
4
votes
2 answers
Check user is in particular radius or not (Flutter)
I want to check if the user is in his/her house using their Geolocation. The app will be running in the foreground and no map will be displayed. The user's house lat and long will be stored in the Firestore.
When the user opens the app, I want to…

Sam
- 2,972
- 6
- 34
- 62
3
votes
2 answers
Disabling flutter_map package rotation while zooming
How to disable map rotation in flutter_map while zooming?
I tried this way:
MapOptions(
interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag,
zoom: 15.0,
),
But this always disable rotation. I only want to temporarily…

Bm Mn
- 489
- 3
- 5
3
votes
1 answer
Showing 3D globe view using flutter_map + Mapbox studio
I'm using flutter_map plugin with a MapBox style and I'm trying to display a 3D globe view in app
This is my current FlutterMap
FlutterMap(
mapController: controller,
options: MapOptions(
…

Ahmed Eltabbal
- 51
- 5
3
votes
2 answers
How to keep map marker icons move when zooming in/out of map
I am using flutter_map in my app to show a map with Markers on it.
The issue I'm having is that when I zoom in/out, the Markers move, as opposed to staying rooted to their location. I have a CircleMarker around each Marker and it becomes obvious…

usafutb0l3r
- 69
- 9
3
votes
1 answer
What does "Offstage" widget do in Flutter?
I am following a tutorial that uses the following code:
final selectedVideoProvider = StateProvider

GoodMan
- 542
- 6
- 19
3
votes
0 answers
Flutter Map how to show city or an Area outline (With Flutter Map MapBox API , NO GOOGLE MAPS)
Does anyone know how to mark the area of a place knowing its latitude/longitude or with the name of the city, I have been looking for information but I have not found anything.
Thank you.

Nil Martinez
- 55
- 2
- 7
3
votes
4 answers
Execution failed for task ':location:compileDebugKotlin'
Execution failed for task ':location:compileDebugKotlin'.
Running Gradle task 'assembleDebug'...
e: /Users/apple/.pub-cache/hosted/pub.dartlang.org/location-4.3.0/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (124, 1): Class…

Dark_Clouds_369
- 658
- 1
- 6
- 24
3
votes
2 answers
Mapping out values from data Flutter
I'm having trouble extracting the values of the data received from the push notification:
Message data: {default: {"event":"text","id":"23Vlj0BwSA7xKtsf4IbFCHAIsNr"}}, where I tried a lot of .map methods etc. but I always get null values. Is there…

GrandMagus
- 600
- 3
- 12
- 37
3
votes
1 answer
How to add cursor For PinFieldAutoFill flutter
There is no cursor while entering OTP, How can add Cursor in pinFieldAutoFill. I am using the sms_autofill: ^1.2.5 package.
PinFieldAutoFill(
autofocus: true,
…

Muzammil Dafedar
- 31
- 3