String vidhiyata values ena variable ekak double walata convert karala lat lang walata assign kranne kohomada ?
-
kalin screen eke thiyenne list view ekak eke click karana list eke thiyena latitude and longitude values aran e location eka ilaga screen eke thiyena google map eke show karanna ona . eka karanne komada ? mn denata map and marker eka display wenna code kara . eth kalin screen eken ena latitude ekai longitude ekai aran map eke e location eka show karanna bene ? mage denata code eka meka
class MapView extends StatefulWidget { var lat; var long; MapView ({this.lat, this.long}); @override _MapViewState createState() => _MapViewState(); } class _MapViewState extends State<MapView> { GoogleMapController _controller; @override Widget build(BuildContext context) { return GoogleMap( mapType: MapType.normal, markers: _createMarker(), initialCameraPosition: CameraPosition( target: LatLng(6.4135, 81.3326), zoom: 12.0, ), onMapCreated: (GoogleMapController controller){ _controller = controller; }, ); } } Set<Marker> _createMarker(){ return <Marker>[ Marker(markerId: MarkerId("Home"), position: LatLng(6.4135, 81.3326), icon: BitmapDescriptor.defaultMarker, infoWindow: InfoWindow(title: "Camp",), ), ].toSet(); }
me screen ekata values enne pahala widiyata .
"${widget.list[widget.index]['organize_by']}";
-
Android nam karala nehe man. man nikan google karala beluwe
-
@Sahan-Pasindu-Nirmal help ekak denna ape kollek