PlacePicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PlacePicker
Constructors
-
PlacePicker({Key? key, required String apiKey, ValueChanged<
PickResult> ? onPlacePicked, required LatLng initialPosition, bool? useCurrentLocation, LocationAccuracy desiredLocationAccuracy = LocationAccuracy.high, MapCreatedCallback? onMapCreated, String? hintText, String? searchingText, ValueChanged<String> ? onAutoCompleteFailed, ValueChanged<String> ? onGeocodingSearchFailed, String? proxyBaseUrl, BaseClient? httpClient, SelectedPlaceWidgetBuilder? selectedPlaceWidgetBuilder, PinBuilder? pinBuilder, int autoCompleteDebounceInMilliseconds = 500, int cameraMoveDebounceInMilliseconds = 750, MapType initialMapType = MapType.normal, bool enableMapTypeButton = true, bool enableMyLocationButton = true, int myLocationButtonCooldown = 10, bool usePinPointingSearch = true, bool usePlaceDetailSearch = false, num? autocompleteOffset, num? autocompleteRadius, String? autocompleteLanguage, List<Component> ? autocompleteComponents, List<String> ? autocompleteTypes, bool? strictbounds, String? region, bool selectInitialPosition = false, bool resizeToAvoidBottomInset = true, String? initialSearchString, bool searchForInitialValue = false, bool forceAndroidLocationManager = false, bool forceSearchOnZoomChanged = false, bool automaticallyImplyAppBarLeading = true, bool autocompleteOnTrailingWhitespace = false, bool hidePlaceDetailsWhenDraggingPin = true, Widget? icon, Color? iconColor, Widget? label, String? labelText, TextStyle? labelStyle, TextStyle? floatingLabelStyle, String? helperText, TextStyle? helperStyle, int? helperMaxLines, TextStyle? hintStyle, TextDirection? hintTextDirection, int? hintMaxLines, String? errorText, TextStyle? errorStyle, int? errorMaxLines, FloatingLabelBehavior? floatingLabelBehavior, FloatingLabelAlignment? floatingLabelAlignment, bool isCollapsed = false, bool? isDense, Widget? prefixIcon, BoxConstraints? prefixIconConstraints, Widget? prefix, String? prefixText, TextStyle? prefixStyle, Color? prefixIconColor, Widget? suffixIcon, Widget? suffix, String? suffixText, TextStyle? suffixStyle, Color? suffixIconColor, BoxConstraints? suffixIconConstraints, Widget? counter, String? counterText, TextStyle? counterStyle, bool? filled, Color? fillColor, Color? focusColor, Color? hoverColor, InputBorder? errorBorder, InputBorder? focusedBorder, InputBorder? focusedErrorBorder, InputBorder? disabledBorder, InputBorder? enabledBorder, InputBorder? border, bool enabled = true, String? semanticCounterText, bool? alignLabelWithHint, BoxConstraints? constraints, double? height, BorderRadiusGeometry? borderRadius, bool isInScaffoldBodyAndHasAppBar = true})
Properties
- alignLabelWithHint → bool?
-
final
- apiKey → String
-
final
-
autocompleteComponents
→ List<
Component> ? -
final
- autoCompleteDebounceInMilliseconds → int
-
final
- autocompleteLanguage → String?
-
final
- autocompleteOffset → num?
-
final
- autocompleteOnTrailingWhitespace → bool
-
Will perform an autocomplete search, if set to true. Note that setting
this to true, while providing a smoother UX experience, may cause
additional unnecessary queries to the Places API.
final
- autocompleteRadius → num?
-
final
-
autocompleteTypes
→ List<
String> ? -
final
- automaticallyImplyAppBarLeading → bool
-
Whether to display appbar backbutton. Defaults to true.
final
- border → InputBorder?
-
final
- borderRadius → BorderRadiusGeometry?
-
final
- cameraMoveDebounceInMilliseconds → int
-
final
- constraints → BoxConstraints?
-
final
- counter → Widget?
-
final
- counterStyle → TextStyle?
-
final
- counterText → String?
-
final
- desiredLocationAccuracy → LocationAccuracy
-
final
- disabledBorder → InputBorder?
-
final
- enabled → bool
-
final
- enabledBorder → InputBorder?
-
final
- enableMapTypeButton → bool
-
final
- enableMyLocationButton → bool
-
final
- errorBorder → InputBorder?
-
final
- errorMaxLines → int?
-
final
- errorStyle → TextStyle?
-
final
- errorText → String?
-
final
- fillColor → Color?
-
final
- filled → bool?
-
final
- floatingLabelAlignment → FloatingLabelAlignment?
-
final
- floatingLabelBehavior → FloatingLabelBehavior?
-
final
- floatingLabelStyle → TextStyle?
-
final
- focusColor → Color?
-
final
- focusedBorder → InputBorder?
-
final
- focusedErrorBorder → InputBorder?
-
final
- forceAndroidLocationManager → bool
-
On Android devices you can set forceAndroidLocationManager
to true to force the plugin to use the
LocationManager
to determine the position instead of theFusedLocationProviderClient
. On iOS this is ignored.final - forceSearchOnZoomChanged → bool
-
Allow searching place when zoom has changed. By default searching is disabled when zoom has changed in order to prevent unwilling API usage.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- helperMaxLines → int?
-
final
- helperStyle → TextStyle?
-
final
- helperText → String?
-
final
- hidePlaceDetailsWhenDraggingPin → bool
-
final
- hintMaxLines → int?
-
final
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
- hintTextDirection → TextDirection?
-
final
- hoverColor → Color?
-
final
- httpClient → BaseClient?
-
optional - set 'client' value in google_maps_webservice
final
- icon → Widget?
-
final
- iconColor → Color?
-
final
- initialMapType → MapType
-
final
- initialPosition → LatLng
-
final
- initialSearchString → String?
-
Initial value of autocomplete search
final
- isCollapsed → bool
-
final
- isDense → bool?
-
final
- isInScaffoldBodyAndHasAppBar → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
final
- labelStyle → TextStyle?
-
final
- labelText → String?
-
final
- myLocationButtonCooldown → int
-
final
-
onAutoCompleteFailed
→ ValueChanged<
String> ? -
final
-
onGeocodingSearchFailed
→ ValueChanged<
String> ? -
final
- onMapCreated → MapCreatedCallback?
-
final
-
onPlacePicked
→ ValueChanged<
PickResult> ? -
By using default setting of Place Picker, it will result result when user hits the select here button.
final
- pinBuilder → PinBuilder?
-
optional - builds customized pin widget which indicates current pointing position.
final
- prefix → Widget?
-
final
- prefixIcon → Widget?
-
final
- prefixIconColor → Color?
-
final
- prefixIconConstraints → BoxConstraints?
-
final
- prefixStyle → TextStyle?
-
final
- prefixText → String?
-
final
- proxyBaseUrl → String?
-
optional - sets 'proxy' value in google_maps_webservice
final
- region → String?
-
final
- resizeToAvoidBottomInset → bool
-
If true the
body
and the scaffold's floating widgets should size themselves to avoid the onscreen keyboard whose height is defined by the ambient MediaQuery's MediaQueryData.viewInsetsbottom
property.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchForInitialValue → bool
-
Whether to search for the initial value or not
final
- searchingText → String?
-
final
- selectedPlaceWidgetBuilder → SelectedPlaceWidgetBuilder?
-
optional - builds selected place's UI
final
- selectInitialPosition → bool
-
final
- semanticCounterText → String?
-
final
- strictbounds → bool?
-
final
- suffix → Widget?
-
final
- suffixIcon → Widget?
-
final
- suffixIconColor → Color?
-
final
- suffixIconConstraints → BoxConstraints?
-
final
- suffixStyle → TextStyle?
-
final
- suffixText → String?
-
final
- useCurrentLocation → bool?
-
final
- usePinPointingSearch → bool
-
final
- usePlaceDetailSearch → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _PlacePickerState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited