Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(16.0),
child: BaatoPlaceAutoSuggestion(
hintText: 'Search for a place',
onPlaceSelected: (suggestion) {},
currentCoordinate: BaatoCoordinate(
latitude: 27.7172,
longitude: 85.3240,
),
suggestionsHeader: Container(
color: Colors.white.withOpacity(0.8),
child: Text('Suggestions'),
),
suggestionsFooter: Container(
color: Colors.white.withOpacity(0.8),
child: Text('Footer'),
),
inputDecoration: InputDecoration(
border: OutlineInputBorder(),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.grey),
),
),
onPlaceDetailsRetrieved: (place) {
BaatoMapView.mapController.cameraManager?.moveTo(
BaatoCoordinate(
latitude: place.centroid.latitude,
longitude: place.centroid.longitude,
),
);
},
),
)
}