OpenStreetMapSearchAndPick constructor
const
OpenStreetMapSearchAndPick({
- Key? key,
- required void onPicked(
- PickedData pickedData
- IconData zoomOutIcon = Icons.zoom_out_map,
- IconData zoomInIcon = Icons.zoom_in_map,
- IconData currentLocationIcon = Icons.my_location,
- Color buttonColor = Colors.blue,
- Color locationPinIconColor = Colors.blue,
- String locationPinText = 'Location',
- TextStyle locationPinTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.blue),
- String hintText = 'Search Location',
- TextStyle buttonTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.white),
- Color buttonTextColor = Colors.white,
- String buttonText = 'Set Current Location',
- double buttonHeight = 50,
- double buttonWidth = 200,
- String baseUri = 'https://nominatim.openstreetmap.org',
- IconData locationPinIcon = Icons.location_on,
Implementation
const OpenStreetMapSearchAndPick({
Key? key,
required this.onPicked,
this.zoomOutIcon = Icons.zoom_out_map,
this.zoomInIcon = Icons.zoom_in_map,
this.currentLocationIcon = Icons.my_location,
this.buttonColor = Colors.blue,
this.locationPinIconColor = Colors.blue,
this.locationPinText = 'Location',
this.locationPinTextStyle = const TextStyle(
fontSize: 16, fontWeight: FontWeight.bold, color: Colors.blue),
this.hintText = 'Search Location',
this.buttonTextStyle = const TextStyle(
fontSize: 16, fontWeight: FontWeight.bold, color: Colors.white),
this.buttonTextColor = Colors.white,
this.buttonText = 'Set Current Location',
this.buttonHeight = 50,
this.buttonWidth = 200,
this.baseUri = 'https://nominatim.openstreetmap.org',
this.locationPinIcon = Icons.location_on,
}) : super(key: key);