skip to Main Content

Flutter Google Map, how to merge two different marker list?

GoogleMap( mapType: MapType.normal, initialCameraPosition: CameraPosition( target: geocode!, zoom: 14, ), onMapCreated: (GoogleMapController controller) async { googleMapControllerCompleter.complete(controller); }, compassEnabled: true, myLocationEnabled: true, onTap: (v) {}, markers: <--->), ------ List<Marker> dumA = []; markerGroupA = Set<Marker>.of(dumA); List<Marker> dumB = []; markerGroupB =…

VIEW QUESTION

“Is there an error exception with a Null value when using a Drop Down Button in Flutter?”

======== Exception caught by widgets library ======================================================= The following assertion was thrown building MyHomePage(dirty, dependencies: [MediaQuery], state: _MyHomePageState#a3bdf(tickers: tracking 1 ticker)): There should be exactly one item with [DropdownButton]'s value: Marker{markerId: MarkerId(First Marker), alpha: 1.0, anchor: Offset(0.5, 1.0), consumeTapEvents: false,…

VIEW QUESTION
Back To Top
Search