Commit 75fd0aa1 authored by Yasiru-Deshan's avatar Yasiru-Deshan

Search location bar added

parent 5fe7ab2b
...@@ -60,28 +60,54 @@ class MapSampleState extends State<MapSample> { ...@@ -60,28 +60,54 @@ class MapSampleState extends State<MapSample> {
width: 5, width: 5,
); );
static final Polygon _kPolygon = Polygon(
polygonId: PolygonId('_kPolygon'),
points:[
LatLng(37.42796133580664, -122.085749655962),
LatLng(37.43296265331129, -122.08832357078792),
LatLng(37.418, -122.092),
LatLng(37.435, -122.092),
],
strokeWidth: 5,
fillColor: Colors.transparent,
);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: GoogleMap( appBar: AppBar(title: Text("LOOK AI"),),
body: Column(
children:[
Row(children:[
Expanded(child: (TextFormField())) ,
IconButton(
onPressed: (){},
icon: Icon(Icons.search),),
],),
Expanded(
child:GoogleMap(
mapType: MapType.normal, mapType: MapType.normal,
markers: {_kGooglePlexMarker, markers: {_kGooglePlexMarker,
_kLakeMarker, //_kLakeMarker,
}, },
polylines:{ /* polylines:{
_kPolyline, _kPolyline,
}, },
polygons: {
_kPolygon,
},*/
initialCameraPosition: _kGooglePlex, initialCameraPosition: _kGooglePlex,
onMapCreated: (GoogleMapController controller) { onMapCreated: (GoogleMapController controller) {
_controller.complete(controller); _controller.complete(controller);
}, },
), ),
floatingActionButton: FloatingActionButton.extended( ),
/* floatingActionButton: FloatingActionButton.extended(
onPressed: _goToTheLake, onPressed: _goToTheLake,
label: const Text('To the lake!'), label: const Text('To the lake!'),
icon: const Icon(Icons.directions_boat), icon: const Icon(Icons.directions_boat),
), ),*/
],),
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment