skip to Main Content

How to add attribution to mapbox with fluttermap

i am using fluttermap with MapBox tiles. This is my map: FlutterMap( options: MapOptions( center: userLocation ?? bikePosition ?? LatLng(46.94809, 7.44744), zoom: 8.0, minZoom: 4.0, maxZoom: 18.0, interactiveFlags: InteractiveFlag.all & ~InteractiveFlag.rotate, ), nonRotatedChildren: [ isSatellite ? TileLayer( urlTemplate: "https://api.mapbox.com/styles/v1/twinnerag/cllnbkuiw000c01pe82l86m0s/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoidHdpbm5lcmFnIiwiYSI6ImNsbG1ib3FmdDFoZWEzY3Q2ODRoamloN2UifQ.FVQHAk7oy1RCyvlDqeZW5A", )…

VIEW QUESTION

select a button and deselect button flutter

How to make deselect and select button like in the photo above. Here is my code. Widget buttonRow(String dateTime, bool verticalLine, int buttonNumber) { return InkWell( onTap: (){ print('select-deSelect'); }, child: Container( height: 50, child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, // crossAxisAlignment:…

VIEW QUESTION

flutter GestureDetector swipe while onlongPress

a button should be long pressed to record something. If during the long press a swipe is detected the record should be deleted. I tried to combine onLongPressStart/End with onPanUpdate, but it doesn't work GestureDetector( child: Icon(Icons.mic_none_outlined), onLongPressStart: (_) async…

VIEW QUESTION
Back To Top
Search