OpenStreetMapSearchAndPick constructor

const OpenStreetMapSearchAndPick({
  1. Key? key,
  2. required void onPicked(
    1. PickedData pickedData
    ),
  3. IconData zoomOutIcon = Icons.zoom_out_map,
  4. IconData zoomInIcon = Icons.zoom_in_map,
  5. IconData currentLocationIcon = Icons.my_location,
  6. Color buttonColor = Colors.blue,
  7. Color locationPinIconColor = Colors.blue,
  8. String locationPinText = 'Location',
  9. TextStyle locationPinTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.blue),
  10. String hintText = 'Search Location',
  11. TextStyle buttonTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.white),
  12. Color buttonTextColor = Colors.white,
  13. String buttonText = 'Set Current Location',
  14. double buttonHeight = 50,
  15. double buttonWidth = 200,
  16. String baseUri = 'https://nominatim.openstreetmap.org',
  17. 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);