PlacesAutocompleteField constructor

const PlacesAutocompleteField({
  1. Key? key,
  2. required String apiKey,
  3. TextEditingController? controller,
  4. Icon? leading,
  5. String hint = "Search",
  6. Icon? trailing,
  7. VoidCallback? trailingOnTap,
  8. Mode mode = Mode.fullscreen,
  9. num? offset,
  10. Location? location,
  11. num? radius,
  12. String? language,
  13. String? sessionToken,
  14. List<String>? types,
  15. List<Component>? components,
  16. bool? strictbounds,
  17. ValueChanged<String?>? onChanged,
  18. ValueChanged<Prediction>? onSelected,
  19. ValueChanged<PlacesAutocompleteResponse>? onError,
  20. InputDecoration? inputDecoration = const InputDecoration(),
})

Creates a text field like widget.

To remove the decoration entirely (including the extra padding introduced by the decoration to save space for the labels), set the decoration to null.

Implementation

const PlacesAutocompleteField({
  Key? key,
  required this.apiKey,
  this.controller,
  this.leading,
  this.hint = "Search",
  this.trailing,
  this.trailingOnTap,
  this.mode = Mode.fullscreen,
  this.offset,
  this.location,
  this.radius,
  this.language,
  this.sessionToken,
  this.types,
  this.components,
  this.strictbounds,
  this.onChanged,
  this.onSelected,
  this.onError,
  this.inputDecoration = const InputDecoration(),
}) : super(key: key);