SearchGooglePlacesWidget class
Constructors
-
SearchGooglePlacesWidget.new({String? apiKey, String? placeholder = 'Search', IconData? icon = Icons.search, bool? hasClearButton = true, IconData? clearIcon = Icons.clear, Color? iconColor = Colors.blue, required void onSelected(Place place), String language = 'en', LatLng? location, int? radius, bool? strictBounds = false, PlaceType? placeType, bool? darkMode = false, String? apiSearchUrl, ValueChanged? searchError, Key? key})
-
Properties
-
apiKey
→ String?
-
API Key of the Google Maps API.
final
-
apiSearchUrl
→ String?
-
final
-
clearIcon
→ IconData?
-
The icon to show indicating the "clear textfield" button
final
-
darkMode
→ bool?
-
Enables Dark Mode when set to
true
. Default value is false
.
final
-
hasClearButton
→ bool?
-
Makes available "clear textfield" button when the user is writing.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
final
-
icon
→ IconData?
-
The initial icon to show in the search box
final
-
iconColor
→ Color?
-
The color of the icon to show in the search box
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
final
-
language
→ String
-
Language used for the autocompletion.
final
-
location
→ LatLng?
-
The point around which you wish to retrieve place information.
final
-
onSelected
→ void Function(Place place)
-
The callback that is called when one Place is selected by the user.
final
-
placeholder
→ String?
-
Placeholder text to show when the user has not entered any input.
final
-
placeType
→ PlaceType?
-
Place type to filter the search. This is a tool that can be used if you only want to search for a specific type of location. If this no place type is provided, all types of places are searched. For more info on location types, check https://developers.google.com/places/web-service/autocomplete?#place_types
final
-
radius
→ int?
-
The distance (in meters) within which to return place results. Note that setting a radius biases results to the indicated area, but may not fully restrict results to the specified area.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchError
→ ValueChanged?
-
final
-
strictBounds
→ bool?
-
Returns only those places that are strictly within the region defined by location and radius. This is a restriction, rather than a bias, meaning that results outside this region will not be returned even if they match the user input.
final